So I know that & and | work like a boolean AND and OR but is there anything that works like an XOR?
Depending on what you're trying to do, either a combination of ! and = (for a scalar boolean value, logical XOR is the same as "not equal to") or possibly bits.xor[].