Boolean associativity
If a boolean operator is associative, it means that we can group the values in any way and we get the same result.
For any operator
The main boolean operations that are associative are:
- AND:
- OR:
- XOR:
This means that we can group the values in any way we like when we’re using these operations, and we’ll get the same results.