Boolean

The Boolean data type has two values: the literals TRUE and FALSE.

A comparison returns a Boolean value as the condition has to be TRUE or FALSE.

Example:

The following expression is used to change the color of an object on a Mimic according to the state of a point named 'DIG 1':

IIF( "DIG 1.CurrentState" = 1, RGB(255,0,0), RGB(0,255,0 ))

This expression contains a condition that uses the current state of the point. If the current state is 1, the condition is TRUE; if the current state is not 1, the condition is FALSE. When the condition is TRUE, the Mimic object is colored red (the first RGB color) and when it is FALSE, the object is colored green (the second RGB color).


Disclaimer

Geo SCADA Expert 2020