April 2024
Beginner to intermediate
500 pages
24h 20m
English
A simple Boolean expression can be constructed using any of the relational and equality operators shown in Table B.11.
Table B.11 Relational and Equality Operators and Their Meaning
| Operator | Meaning |
|---|---|
| < | Less than |
| <= | Less than or equal to |
| > | Greater than |
| >= | Greater than or equal to |
| == | Equal |
| != | Not equal |
Multiple Boolean expressions can be joined using the logical operators and, or, and not as shown in Table B.12. In this table, x and y are Boolean expressions.
Table B.12 Logical Operator Behavior
| x and y | True if both x and y are True; otherwise False. |
| x or y | True if either x or y is True; otherwise False. |
| not x | True if x is False ... |
Read now
Unlock full access