Next: Mathematical Operators, Previous: Boolean Logic: Everything is a Number, Up: Expressions: The Engine of STARTER [Contents]
You can relate different expressions using standard operators:
| Operator | Description |
|---|---|
==, != | 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;