evalCalc (Determine and calculate function expression)

Prev Next

$evalCalc can be used to execute a function expression at runtime.

The expression is determined and calculated at runtime. This function is exclusively needed to execute an expression which can be read from another place and cannot be formulated statically.

Tooltip

Syntax: $evalCalc(expression)

Parameter

Description

expression

The function to be calculated as text, e.g. $el(3) or \{data field\}.

Returns the result of the expression.

Example: $evalCalc({fieldThisExpressionContains}) – reads the value of the field and evaluates it as a function.

Syntax

$evalCalc(expression)

Parameter

Name

Description

expression

The expression to be calculated as text, e.g. $el(3) or \{data field\}.

Return value

The result of the function.

Example

Syntax

Host object

Result

$evalCalc({formula})

{
  "formula": "1+2"
}

3