<--- [ Contents ]  

OR Gate

The OR gate takes two inputs and gives one output. The OR gate will output a HIGH (1) if either input is HIGH (1). If they are both low it will output a LOW (0).

In programming a logical OR operator is used to check if either one of two things are TRUE. If "cloudy day" OR "is raining" take umbrella. That conditional statement will be true if either condition is true and we will take an umbrella, otherwise we won't.

In Verilog and C like languages the OR operator is the vertical bar:
  Q = A | B