Before getting into compound boolean expressions, there are two new operators that must be introduced: the AND operator and the OR operator.
- AND (
&&): Returns true only if both operands are true. - OR (
||): Returns true if at least one operand is true.
You can also have more than one of the following compound logical operators to combine boolean expressions together.