Condition operators
Condition operators take two expressions as arguments. The operator specifies a condition. When evaluated, the result is a logical value (true or false). Condition operators can be used in the following clauses:
- where clauses, and can be combined with logical combination operators
- when clauses, to exert a condition on the changed slot
- timer_info clauses, to exert a condition on the timer_info tag
When a condition operator is used in a where clause, the argument on the left can be either an expression or a shortcut slot reference by using the following form, which refers to the named slot of the current event:
When a condition operator is used in a when operator, the argument to the left of the operator must be a slot reference. When the referenced slot changes, the when clause evaluation is triggered.
When a condition operator is used in a timer_info clause, the argument to the left of the clause is the timer_info tag.
Condition operator example 1
Condition operator example 2