run_command (string command) ⇒ mixed
Runs a single command from a string such as a mathematical expression and returns the return value from it. This allows on-the-fly interpreting. It can be used to return the value of a mathematical term such as: run_command("5 + 5")
.
Notes
Be careful with the run_command
function!
This function has direct access to any other command within ZPE and whilst it does run within it's own ZPE instance within the same permission level as the parent process, it should be used with caution.
This function cannot access variables defined within any program other than within it's own runtime.
The run_command
function always wraps any code in a return.