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:

SlotName: 

Note

A shortcut slot reference is equivalent to $THIS.SlotName. However, the use of this shortcut syntax is discouraged because it is less readable.

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

when $E.status != OPEN

Condition operator example 2

timer_info: == EventTimeout

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*