So,

If A xor B

is the same as

If A = True or B = True and A <> B