Eval
Evaluate a block of code.
Eval dynamically evaluates a block of code to give a piece of text, which is fed through the parser. This gives a statement list, which is then executed.
Usage
eval(expression);
Example
set x = "foo";
set y = "bar";
set bar = "bat";
eval("set $x = \$$y;"); // _evaluates to set foo = $bar_
// foo will now be "bat"
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified August 31, 2024: Signed-off-by: tracyragan <[email protected]> (20379ca)