truth table and or xor operation code example Example: XOR 0 | 0 | 0 0 | 1 | 1 1 | 0 | 1 1 | 1 | 0 ONLY ONE CAN BE TRUE