| Syntax |
|
| Documentation | Inteprets the given string as a mathematical expression and calculates its result:
If the given expression could not be evalueted then $eval returns nothing. |
| Examples | |
Calculate the average value of the numbers 1 through 10:
$for {$set{counter}{1}} {$lessOrEqual{$get{counter}}{10}} {$incLocal{counter}}
$set{sum}{$eval{$get{counter} + $get{sum}}} } $set{average}{$eval{$get{sum} / 10}} |
|
| Group | Math |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 1 |