« Back to Product

Documentation

SetValueFloat

 bool SetValueFloat (int $VariableID, float $Value) 

Parameters

VariableID

ID of the variable

Value

64-bit floating point number

Returns

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

Description

The function sets the value of the IP-Symcon variable with the ID VariableID to Value. The selected variable must have the type Float. If the variable's type is not Float, the function stops with an error. A conversion from Integer or Boolean (0/1) is done. For setting the variable type-unsafely you can use the function SetValue.

Example

SetValueFloat(47788, $current_Temperature);
Any questions?