Documentation
GetValue
variant GetValue (int $VariableID)
Parameters
VariableID | ID of the variable |
Returns
Value of the specified variable in the type of the specified variable
Description
The command returns the content of the IP-Symcon variable with the ID VariableID. The returned variable type is the one that was selected when creating the variable (IPS_CreateVariable). If the variable was created as a string, the command returns a string.
Example
$Window_open = GetValue(47788); // Boolean-Variable: true or false
$current_project = GetValue(46250); // String-Variable: e.g. "Rain sensing"