The output of XOR (Exclusive OR) gate is true when either of the inputs are true but not when both are true. In the example above, both inputs rotate the switch by 90 degrees. When either of the inputs are true, the circuit is completed and the signal can reach the output. But, if both inputs are true, the switch rotates 180 degrees, breaking the circuit and stopping the signal from reaching the output.
Truth Table
Input One Input Two Output
0 0 0
1 0 1
0 1 1
1 1 0