Skip to main content
deleted 36 characters in body
Source Link
Matti Virkkunen
  • 65.4k
  • 9
  • 138
  • 162

You can use the != operator. For two booleans it has the same truth table as an "actual" XOR operator.

There's also ^ for binary XOR.

You can use the != operator. For two booleans it has the same truth table as an "actual" XOR operator.

There's also ^ for binary XOR.

You can use the != operator. For two booleans it has the same truth table as an "actual" XOR operator.

Source Link
Matti Virkkunen
  • 65.4k
  • 9
  • 138
  • 162

You can use the != operator. For two booleans it has the same truth table as an "actual" XOR operator.

There's also ^ for binary XOR.