string IPS_RunScriptTextWait (string $ScriptText)
ScriptText | String that is executed as script |
Result of the executed script |
The command starts a script with the content ScriptText and waits for the execution of the script to return its result. It is not necessary to state PHP tags.
// Prints "Hello World" in the message view echo IPS_RunScriptTextWait("echo 'Hello World';");