To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationrun_command

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").

First available: Version


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.

Code previewClose
Feedback 👍
Comments are sent via email to me.