In the previous lesson, we learned about the logic gate “AND”. The “AND” logical operation produces a “High” output if all of its input are “1s”. If one or multiples of its inputs are “0s”, the output of the “AND” logic gate will be a zero. In this lesson, we are going to see our second logic gate called the “OR” Gate. The “OR” gate do the logical operation “OR” and is often represents with “|” or “||”. The “OR” logical operation produces a “Low” output if all of its input are “0s”. If one or multiples of its inputs are “1s”, the output of the “OR” logic gate will be a “1”. The “OR” Gate is represent below :

Below, you can find the four possible inputs combination with its output result :

**Truth table**

A truth table is often used to describe how a logic gate behave with given inputs. For the “OR” logic gate with 2 inputs, we have the following truth table :

On the left side of the truth table, you have the inputs “A” and “B” with all 4 possibles combination of “0s” and “1s”. First line is “A” equals “0” and “B” equals “0” which result in an output of “0”. The second line is “A” equals “0” and “B” equals “1” which result in an output of “1”. The fourth and last line of the truth table is “A” equals “1” and “B” equals “1” which result in an output of “1” for the “OR” logic gate.

**3 or more inputs “OR” gate**

We could have more than two inputs with an “OR” gate but there will always be only one output. The 3 or more inputs “OR” gate follows the same rule as the 2 inputs “OR” gate. The “OR” logical operation produces a “Low” output if all of its input are “0s”. If one or multiples of its inputs are “1s”, the output of the “OR” logic gate will be a “1”. Below, you can find the schematic symbol for a 3 inputs “OR” gate and its truth table :

For “OR” gate, the important things to remember is that it produces a “High” output if one of its input is a “1”. If all of its inputs are “0s”, the output of the “OR” logic gate will be a zero. This is easier to remember than a huge truth table. Truth table will be more useful with some logic gate that are a bit more complex or when we will starts combining multiples logic gate together which could create a circuit with a very specific behavior. We have completed the lesson on the “OR” gate. We will reuse this logic gate when combining it with others logic gate later in this chapter. In the next lesson, we will explore a different logic gate called the “NOT” gate or sometimes called the inverting gate. The “NOT” gate is a very simple gate as we will see in the next chapter.