Reserved Words and Expressions : Expressions : Trigger Expressions : Condition Expressions

Condition Expressions

The following table lists the operators that are related to various types of elements and represent a single (non-array) condition.

 
Condition Expression
Activity A is active.
C is a condition array.
C is a condition array.
Activity A is suspended.
System A is in state S.
The values of X1 and X2 satisfy the relation R.
Note: X1 and X2 are data-item or condition expressions.
When numeric, R can be: ==, /=, >, <, <=, or >=.

The following table lists the logical operations that use only single (non-array) conditions and represent a single condition. The operations are shown in descending order of precedence.

 
Both Cl and C2 are true.
Cl or C2 or both are true.
C is not true.

You can use parentheses to alter the evaluation order. For example:

(not((C1 or C2) and C3))

 

 

Note: Logical operations have lower precedence than comparison relations.