# Boolean Expressions

The logical operators let you test more than one expression.

A double ampersand, && means AND. A double pipe or bar || means OR. The pipe is typed using shift + backspace.

### Truth table

a b a||b a&&b
0 0 0 0
0 1 1 0
1 0 1 0
1 1 1 1

CODEIn a truth table, false is often shown as zero, true is shown as 1.

a b a||b a&&b
0 0 0 0
0 1 1 0
1 0 1 0
1 1 1 1

CODE