A boolean can be toggled by XORing with true.
true
Also if an integer is either 0 or x (x is another integer) it can be toggled between 0 and x by XORing with x.
0
x
A boolean can be toggled by XORing with
true.Also if an integer is either
0orx(xis another integer) it can be toggled between0andxby XORing withx.