Previous Next Chapter

Logical (Boolean) Operators

ARexx defines the four logical operations, NOT, AND, OR, and Exclusive OR, all of which require Boolean operands and produce a Boolean result. An attempt to perform a logical operation on a non-Boolean operand will generate an error. Table 3-4 shows the acceptable logical operators.

Table 3-4. Logical Operators

Operator Priority Operation

~ 8 NOT (Inversion)

& 2 AND

| 1 OR

^or && 1 Exclusive OR

Top Previous Next Chapter