I just want to flip a boolean based on what it already is. If it\'s true - make it false. If it\'s false - make it true.
Here is my code excerpt:
swi
Just because I like to question code. I propose that you can also make use of the ternary by doing something like this:
Example:
bool flipValue = false; bool bShouldFlip = true; flipValue = bShouldFlip ? !flipValue : flipValue;