evalCalc (Determine and calculate function expression)
$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.
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 |