What can we improve?

Documentation

(Edit)

Translation is in progress...
Not all topics are available at the moment and content links may be broken.

IPS_RunScriptTextWaitEx

string IPS_RunScriptTextWaitEx (string $ScriptText, array $Parameter)

Parameters

ScriptText String that is executed as script
Parameter Key (string) => Value (variant) Pairs that can be accessed in the executed script

Returns

result of the executed script

Description

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.

The array Parameter can contain any number of "Key => Value" pairs (see PHP Arrays). Every pair appears in the called script as variable Key with the value Value.

Example

//Script that executes text as script and passes parameters
echo IPS_RunScriptTextWaitEx('echo $_IPS["title"]. "course" . PHP_EOL; echo $_IPS["Tmin"] + 30.0;', Array("title" => "Temp.", "Tmin" => 10.0));
Deutsche Webseite verfügbar
Go to cart
Any questions?