You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The OR gate is the third of the three fundamental logic gates. It takes two inputs and produces one output. The output is 1 (TRUE) when at least one of the inputs is 1. The output is 0 only when both inputs are 0.
The OR gate checks whether any of its inputs are true. For a two-input OR gate:
Think of the OR gate as a generous door policy — you can enter if you have a ticket OR if you are on the guest list OR if you have both. You are only turned away if you have neither.
| Input A | Input B | Output (A ∨ B) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.