I have this line of code
bool b1 = true; bool b2 = true; bool b3 = true; bool areDifferent = b1 ^ b2 ^ b3;
which works, if there are only 2 bool