get the logical xor of two variables,(bool(a) ^ bool(b))