« Back to Product

Documentation

SetValueBoolean

 boolean SetValueBoolean (int $VariableID, boolean $Value) 

Parameters

VariableID

ID of the variable

Value

TRUE/FALSE

Returns

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

Description

The command sets the value of an IP-Symcon variable with the ID VariableID. The selected variable must have the type Boolean. If the variables type is not Boolean, the command stops with an error. No conversion is done by this command. For a type-unsafe query you can use the command SetValue.

Example

SetValueBoolean(47788, true);  // Switch on alarm system
Any questions?