title: How to break/exit from a each() function in JQuery?
body: <p>I have some code:</p>
  
  <pre><code>$(xml).find("strengths").each(function() {
     //Code
     //How can i escape from this block based on a condition.
  });
  </code></pre>
  
  <p>How can i escape from the "each" code block based on a condition?</p>
  
  <h3>Update:</h3>
  
  <p>What if we have something like this:</p>
  
  <pre><code>$(xml).find("strengths").each(function() {
     $(this).each(function() {
         //I want to break out from both each loops at the same time.
     });
  });
  </code></pre>
  
  <p>Is it possible to break out from both "each" functions from the inner "each" function?</p>
  
  <p><strong># 19.03.2013</strong></p>
  
  <p><strong>If you want to continue instead of break out</strong></p>
  
  <pre><code>return true;
  </code></pre>