412: Highlights
- If you want to combine two predicate expressions, and the result is to
be
true
if the values of both expressions are true
,
then use &&
.
- If you want to combine two predicate expressions, and the result is to
be
true
if the value of either expression is true
,
then use ||
.
- Both
&&
and ||
evaluate their left operand before they
evaluate their right operand. The right operand is not evaluated if the
value of the left operand of an &&
expression is false
, or
if the value of the left operand of a ||
expression is
true
.