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"
Last modified May 19, 2020: after dmscript (aa9d9ae)