Next: , Previous: , Up: Expressions: The Engine of STARTER   [Contents]


2.3.6.3 Comparison and Logical Operators

You can relate different expressions using standard operators:

OperatorDescription
==, !=Equal to / Not equal to
<, <=Less than / Less than or equal to
>, >=Greater than / Greater than or equal to
&&AND: True only if both expressions are true
||OR: True if at least one expression is true

You can use parentheses () to group sub-expressions and control the evaluation order. Want an alarm that rings at 7:00 AM OR whenever oil prices drop?

SET TRUE WHEN (time:hour == 7 && time:minute == 0)
           || oil:price < 100;