I am trying to write a method that when invoked, changes a boolean variable to true, and when invoked again, changes the same variable to false, etc.
For example: ca
value ^= true;
That is value xor-equals true, which will flip it every time, and without any branching or temporary variables.