Two Values
- Binary logic represents statements using true and false, often written 1 and 0.
AND
- P AND Q is true only when both inputs are true.
OR
- P OR Q is true when at least one input is true.
NOT
- NOT reverses a truth value.
XOR
- Exclusive OR is true when exactly one of two inputs is true.