User Tools

Site Tools


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.
syntax/functions/eval.1594245690.txt.gz · Last modified: 2020/07/08 18:01 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki