r = BitXor(a, b)
band returns the result. The exclusive-or operation will set each bit in the resulting value only if the corresponding bit is set in one of the source values. If the bit is set in both source values, it will not be set in the resulting value.
Print(BinStr(BitXor(Val("%11010001"), Val("%10110010")))Performs exclusive-or on the values %11010001 and %10110010 which results in the value %01100011.