syntax:functions:eval
This is an old revision of the document!
Eval(text)
Evaluates the text argument as an EasyMorph expression. The argument itself must not be an expression with a reference to column.
Examples:
eval('1+1') //Result is 2. eval('1' & '+1') //Result is 2. eval('max(1,2)') //Result is 2. eval('[Count]+1') //Evaluated as [Count]+1. eval([Count] & '+1') //Invalid! References to columns are not allowed in argument expressions. eval({Param1}) //If the value of {Param1} is '[Count]+1' then it's evaluated as [Count]+1. Parameter references are allowed. eval("1+" & "eval('1+1')") //Result is 3. Nesting eval() is allowed.
The eval() function makes it possible to define EasyMorph expressions externally using parameters.
syntax/functions/eval.1594329388.txt.gz · Last modified: 2020/07/09 17:16 by dmitry