$eval

Inteprets the given string as a mathematical expression and calculates its result.
Syntax
    $eval{expression}
DocumentationInteprets the given string as a mathematical expression and calculates its result:

    Parameters:
      expression, the mathematical expression to be evalueted.
    Returns:
      the results of the evaluation of the given mathematical expression.
      If the given expression could not be evalueted then $eval returns nothing.
Examples
Calculate the average value of the numbers 1 through 10:

    $set{sum}{0}

    $for {$set{counter}{1}} {$lessOrEqual{$get{counter}}{10}} {$incLocal{counter}}
      {
      $set{sum}{$eval{$get{counter} + $get{sum}}}
      }

    $set{average}{$eval{$get{sum} / 10}}
GroupMath
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1