Boolean logic
Combined expressions
Goal: Evaluate expressions with three inputs and brackets · 10 min
Larger expressions are evaluated like arithmetic: brackets first, then NOT, then AND, then OR (AND binds more strongly, like × before +).
A truth table lists every combination of inputs: 2 inputs → 4 rows, 3 inputs → 8 rows. Count in binary: 000, 001, 010, … 111.
Strategy for (A AND B) OR C:
- add a helper column A AND B,
- then OR it with C.
Two expressions are equivalent if their output columns are identical in every row — that is how you prove a simplification is correct.
Worked example: A OR (A AND B)
- Rows A=0: A AND B = 0, so result 0.
- Rows A=1: result 1 regardless of B.
- Output column equals A — the expression simplifies to A (absorption).