The figure above is the "XOR (exclusive-OR) gate" acts in the same way as the logical "either/or." The output is true if either, but not both, of the inputs are true. The output is false if both inputs are "false" or if both inputs are true. Similarly, the output is 1 if the inputs are different but 0 if the inputs are the same. OR It's an XOR gate denoted by Z = A ⊕ B.