Boolean Operations
The following table depicts the boolean operations, ordered by ascending priority.
|
Operation |
Result |
Notes |
|
|
If |
1 |
|
|
If |
1 |
|
|
If |
2 |
Notes
These evaluate their second argument only if needed for their outcome.
“Not” has a lower priority than non-boolean operators, e.g.,
nota==bis interpreted asnot(a==b), anda==notbis a syntax error.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access