The Logic Rule Book
A Truth Table is like a cheat sheet. It shows exactly what a gate will do for every possible combination of switches!
The AND Rule Book
Remember: AND is only ON (1) if BOTH switches are ON (1).
| Input A | Input B | AND Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
The OR Rule Book
Remember: OR is ON (1) if ANY switch is ON (1).
| Input A | Input B | OR Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
The XOR Rule Book
Remember: XOR is only ON (1) if the switches are DIFFERENT.
| Input A | Input B | XOR Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |