Next: Comparisons Prev: Truth Value Testing Up: Types Top: Top

2.1.2. Boolean Operations

These are the Boolean operations:
Operation
Result --- Notes

x or y
if x is false, then y, else x --- (1)
x and y
if x is false, then x, else y --- (1)
not x
if x is false, then 1, else 0
Notes:

(1)
These only evaluate their second argument if needed for their outcome.