8.2.3.1   CompoundBoolean and BooleanOperator

The CompoundBoolean condition enables building logical expressions by adding sub conditions. It is also known as the BooleanOperator condition in some versions of ERE. The execution considers all the child conditions according to what selection that has been made in the CompoundBoolean condition, see Figure 153.

Figure 153   CompoundBoolean Condition

For example, if AND has been selected, all its child conditions must be true for the CompoundBoolean condition to be true, see Table 79.

Table 79    CompoundBoolean Condition

Operations

Description

AND

All child conditions must be executed as true.

OR

One of the child conditions must be executed as true for the compound boolean to be true.

NOT

The child condition must be executed as false for the compound boolean to be true.

XOR

Either one, but not both, of the child conditions must be executed as true for the compound boolean to be true. If both child conditions are true, or false, the compound boolean is evaluated to false.

In the figure below, the CompoundBoolean condition has four sub conditions, TimeOfDay and another CompoundBoolean condition containing a NumberList and SpecialDate condition.

The execution of this condition evaluates this logical expression as in Figure 154.

Figure 154   A Compound Boolean Used in the Tree