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.

The eval() function makes it possible to define EasyMorph expressions externally using parameters.

syntax/functions/eval.1594245805.txt.gz · Last modified: 2020/07/08 18:03 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki