xor
Checks if only one of the arguments is true.
- Use the logical or (
||), and (&&) and not (!) operators on the two given values to create the logical xor.
Checks if only one of the arguments is true.
||), and (&&) and not (!) operators on the two given values to create the logical xor.