Logical operators

Use the & (AND) and | (OR) logical operators in a complex relational-expression to indicate that the Boolean result of two or more relational-expressions is to be evaluated.

You must precede and follow the & (AND) and | (OR) operators with at least one blank.

The & (AND) operator indicates that all of the specified expressions must be true. For example, to test that a return code is both greater than 8 and less than 24 (in the range 9 through 23), code:
   //TESTAND  IF  (RC > 8 & RC < 24)  THEN
The | (OR) operator specifies that only one of the expressions need be true. For example, to test that a return code is either equal to 8, equal to 10, or greater than 24, code:
   //TESTOR  IF  (RC = 8 | RC = 10 | RC > 24)  THEN