or gate truth table code example Example: OR gate 0 | 0 | 0 0 | 1 | 1 1 | 0 | 1 1 | 1 | 1 AT LEAST ONE MUST BE TRUE