title: Skip if-statement once condition is met
body: <p>This question comes from my OCD-ish nature. Say i have this piece of code.</p>
  
  <pre><code>boolean executed = false;
  for(Object o : Collection){
      if((o fulfills condition) &amp;&amp; executed  == false){
          //do something
          executed  = true;
      } 
      //other code
  }
  </code></pre>
  
  <p>If the specification only requires that the if statement executes <strong>once</strong>, is there a better way to skip <strong>checking</strong> the if conditional than setting <code>executed</code> to true? It bothers me that the loop needs to check the if conditional every single loop iteration, after the if statement has already been executed. </p>
  
  <p>The point of the executed boolean is to prevent the if statement from executing again. I'm not sure this is possible, but i want to take it one step further, and skip checking the if conditional once <code>executed</code> is <code>true</code>.</p>
  
  <p>EDIT: I still need to finish the loop after the condition is met.</p>