Note:

All logical operator notations except for ! require a leading and trailing space.

Logical operator Example

and

5 > 3 and 4 <= 4

or

5 > 3 or 4 < 3

  • not
  • !

5 < 13 and not (4 < 3)

5 > 6 and ! 4 < 14