$eval can be used to execute a calculation expression at runtime.
The expression is determined and calculated at runtime. This function is only needed to execute an expression which can be read from another place and cannot be formulated statically.
Tooltip
Syntax: $eval(expression[,host])
Parameter
Description
expressionThe expression to be calculated as text, e.g. $el(3) or \{data field\}.
hostOptional, the object to be used for the calculation expression.
If the host parameter is not specified, $input is used.
Delivers the result of the expression.
Example: $eval({fieldThatContainsAnExpression}) – reads the value of the field and evaluates it as an expression.
Syntax
$eval(expression[,host])
Parameter
Name | Description |
|---|---|
expression | The expression to be calculated as text, e.g. $el(3) or \{data field\}. |
host | The object to be used for the calculation expression (optional). If the host parameter is not specified, $input is used. |
Return value
The result of the expression
Example
Syntax | Host object | Result |
|---|---|---|
| |
|