Skip to content

FormulaFunction.applyWithContext method

FormulaFunction › applyWithContext

Unofficial

Evaluates the function in a formula context: sets FormulaFunction.ctx, calls FormulaFunction.apply, then resets it.

Signature:

applyWithContext(ctx: FormulaContext, args?: (null | Value)[]): Value

Parameters:

ParameterTypeDescription
ctxFormulaContextThe context of the evaluation.
args?(null | Value)[]The arguments, one per parameter. An omitted optional argument is null.

Returns: Value — The result of the function.