An oR gate produces a 1 output if any of its inputs are 1s. The output is a 0 if all the inputs are 0s. The output of a two-input OR gate is shown in the below truth table.
An OR gate performs the basic operation of addition. The algebraic expression for the output of an OR gate is Y= A + B. The plus sign designates the OR function.