Next: 2.1.3 Comparisons
Up: 2.1 Built-in Types
Previous: 2.1.1 Truth Value Testing
These are the Boolean operations, ordered by ascending priority:
,
Notes:
- (1)
-
These only evaluate their second argument if needed for their outcome.
- (2)
-
`not' has a lower priority than non-Boolean operators, so e.g.
not a == b
is interpreted as not(a == b)
, and
a == not b
is a syntax error.
guido@cnri.reston.va.us