title: Java - Skipping element of outer loop if condition is true for any element in inner loop
body: <p>Here's the code:</p>
  <pre class="lang-java prettyprint-override"><code>for ( Element e : elements ){
      boolean shouldContinue = false;
      for ( OtherElement oe : otherElements ){
          if ( e.magicalCondition(oe) ){
              shouldContinue = true;
              break;
          }
      }
      if (shouldContine){
          continue;
      }  
      otherLogic(e);
  }
  </code></pre>
  <p>What I want done is checking a condition in the inner loop, if said condition is fulfilled, skip this <code>Element</code>, but <code>otherLogic()</code> should be applied to all other <code>Elements</code> where the condition isn't fulfilled.</p>