Short-circuit Operators

A boolean expression evaluates to a `true/false`

value.
This picks the branch
of an `if`

statement or allows a loop to continue.
Sometimes a boolean expression is more complicated
than we have seen so far in these notes.
Often a program must make a decision based on a number of factors.
This chapter examines this topic and discusses some additional boolean
operators.

- Short-circuit
`&&`

and`||`

operators - Non-short-circuit
`&`

and`|`

operators - Expressions made with several
`&&`

operators - Expressions made with several
`||`

operators - Expressions made with mixed
`&&`

and`||`

operators - Precedence of
`&&`

and`||`

operators

What is the `true/false`

value of:

12 < 6 && 18 > 1