XOR works for any number of inputs, just like AND and OR. IE. You can build a 3 input AND gate by simply canscading 2 2-input AND gates, same thing with OR and XOR. It works like a this: X = A XOR B XOR C A B C X 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 -Dan G.