A condition state evaluates its conditions sequentially
until a given condition is true. Then it fires the associated event.

A condition can be defined either as a function or as an expression.
- A condition as a function
- A condition that is defined as a function returns either a value
of true or a value of false.
- A condition as an expression
- A condition that is defined as an expression returns a boolean
value.
For information on how to create and define conditions, refer to
the following sections.