April 2001
Beginner
432 pages
10h 27m
English
Most languages support additional kinds of decision-making statements. Virtually every language in existence uses the If statement as well as the Else option.
Table 8.1 lists three additional operators that work with the comparison operators you already know. These operators, called the logical operators, combine multiple decisions into one If statement.
| Operator | Use | Description |
|---|---|---|
| And | If (A > B) And (C < D) | Produces a true result if both sides of the And are true. Therefore, A must be greater than B, And C must be less than D. Otherwise, the expression produces a false result. |
| Or | If (A > B) Or (C < D) | Produces a true result if either side of the Or is true. Therefore, A must be greater ... |
Read now
Unlock full access