TO_BOOL conversions

Conversion from another variable type to BOOL:The result is TRUE when the operand is not equal to 0. The result is FALSE when the operand is equal to 0. The result is true for STRING type variables when the operand is "TRUE", otherwise the result is FALSE.

Examples in ST:

b := BYTE_TO_BOOL(2#11010101); (* Result is
TRUE *)

b := INT_TO_BOOL(0); (* Result is FALSE *)

b := TIME_TO_BOOL(T#5ms); (* Result is TRUE *)

b := STRING_TO_BOOL('TRUE'); (* Result is TRUE *)