The output of OR gate is 1
If both inputs are zero
If either or both inputs are 1
Only if both input are 1
If either input is zero
The output of OR gate is Y=A+B.