title: Get out of multiple loops?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop">Breaking out of a nested loop</a>  </p>
  </blockquote>
  
  
  
  <p>I have this code</p>
  
  <pre><code>foreach (___)
  {
      foreach (___)
      {
          foreach (___)
          {
              if (condition)
              {
                  //break out of all loops
              }
          }
      }
  }
  </code></pre>
  
  <p>But <code>break</code> only "breaks" the most inner loop (sorry for my english) and I want to leave them all...</p>
  
  <p>I was thinking about :</p>
  
  <ol>
  <li>GOTO, but I've always been told to not use it</li>
  <li>A sort of boolean-flag</li>
  </ol>
  
  <p>Is there any more elegant way ? like provided by C# ?</p>
  
  <p>Thanks in advance for any help !</p>