EVAL() Function - Evaluate Expression
Syntax
EVAL(str{,expr}{,ERR=lineref})
Description
In BBj 16.0 and higher, the EVAL() function can be used to replace the use of EXECUTE for evaluating dynamic expressions of any type (string, numeric, or object). EVAL() returns the value from the expression in str after compiling and executing the str. Error branches in str are not taken in the event of an error while evaluating the expression.
The optional second argument is a default value to be returned in the event of an error evaluating the expression.
Remarks
None.
Examples
|