## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

### Compound Condition Statements

Recall that the operands on either side of the basic condition test can contain combinations of values to check. You combine these values to create a compound condition using something called Boolean logic. A Boolean value is either true or false, sometimes represented as a 1 or 0.

There is a set of operators in Boolean logic that can be used to combine two input values and return a single output value. If you’ve studied basic physics or electronics, you might find the following refreshingly familiar—these ideas are based around things called logic gates, which take two inputs that can be either high or low (1 or 0, true or false) and set the output to a value that is either high or low.

Don’t worry, though, if ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required