| RULE | 1 | ||
| IF LINK | p20 | FLOW BELOW | 150.67 |
| AND LINK | p20 | FLOW ABOVE | 150.1457 |
| AND PUMP | CS2 | SETTING IS | 1 |
| OR NODE | n767 | PRESSURE ABOVE | 18 |
| THEN PUMP | CS2 | SETTING IS | 0.998529 |
| RULE | 1 | ||
| IF LINK | p20 | FLOW BELOW | 150.67 |
| AND LINK | p20 | FLOW ABOVE | 150.1457 |
| AND PUMP | CS2 | SETTING IS | 1 |
Remarks:
a. Only the RULE, IF and THEN portions of a rule are required; the other portions are optional.
b. When mixing AND and OR clauses, the OR operator has higher precedence than AND, i.e.,
IF A or B and C
is equivalent to
IF (A or B) and C.
If the interpretation was meant to be
IF A or (B and C)
then this can be expressed using two rules as in
IF A THEN ...
IF B and C THEN ...