Optional Readonly astThe syntax tree; undefined if the formula has an error.
Optional Readonly errorThe error of the formula itself (#ERROR!, #NAME? for an unknown function); undefined if it is valid.
Readonly fieldsThe referenced fields ([price] → "price"), each once, in order of appearance.
Readonly sourceThe formula text as given.
Readonly usesTrue if the formula uses a column aggregate (SUM([total]) …).
Evaluates the formula for a row. Never throws: errors are returned as FormulaError.
Without a context, column aggregates (SUM([x])) return #VALUE!.
Optional context: ValueGetterContextIf
A formula compiled once (compileFormula): the AST, the referenced fields and
evaluate()for a row. A formula with a syntax error or an unknown function haserrorset;evaluate()then always returns it.Example
Since
1.1.95