variant SetValue (integer $VariableID, variant $Value)
|VariableID||ID of the variable|
|Value||New value of the variable|
|If the command succeeds, it returns TRUE, otherwise FALSE.|
The command writes the content Value into the IP-Symcon variable with the ID VariableID. It is important to ensure that the type of the set value matches the type of the variable. If the variable has the type String, the value should have the type String as well.
If the variable and value types do not match, PHP tries to make the appropriate conversion. The result of this conversion can deviate from the expected result. It is recommended to pass the correct type.
SetValue(29117, true); // Boolean Variable: Set flag for school holidays SetValue(46250, $current_project); // String Variable: e.g. "Rain sensing"