title: Operation to "Get and AND" boolean variable in Java
body: <p>Is it possible in Java to use syntax like (<code>i++</code>, <code>++i</code>) for boolean logic operators?</p>
  
  <p>I have a boolean variable that is true only for the first iteration of a <code>foreach</code> loop. That iteration has to be skipeed.</p>
  
  <p>Full syntax is</p>
  
  <pre><code>for (...)
  {
      if (bool)
      {
          bool &amp;= false;
          continue;
      }
  }
  </code></pre>
  
  <p>I wonder if there is any way to shorten the syntax <em>without using <code>AtomicBoolean</code></em>. For example construct <code>if (bool &amp;= false)</code> is syntactically correct but I think it will compare the final result and not the original value.</p>
  
  <p>Google is not my friend because the search query is misleading</p>