title: Easiest way to flip a boolean value?
body: <p>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.</p>
  
  <p>Here is my code excerpt:</p>
  
  <pre><code>switch(wParam) {
  
  case VK_F11:
    if (flipVal == true) {
       flipVal = false;
    } else {
      flipVal = true;
    }
  break;
  
  case VK_F12:
    if (otherVal == true) {
       otherValVal = false;
    } else {
      otherVal = true;
    }
  break;
  
  default:
  break;
  }
  </code></pre>