What can we improve?

Documentation

(Edit)

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

SetValue

variant SetValue (integer $VariableID, variant $Value)

Parameters

VariableID ID of the variable
Value New value of the variable

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

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.

Example

SetValue(29117, true);             // Boolean Variable: Set flag for school holidays
SetValue(46250, $current_project); // String Variable: e.g. "Rain sensing"
Deutsche Webseite verfügbar
Go to cart
Any questions?