title: How to break nested foreach loop then go to parent foreach loop on c#
body: <p>I have the following code:</p>
  
  <pre><code>foreach(// Some condition here)
  {
      while (// Some condition here)
      {
          foreach (// Some condition here)
          {
               if (// Condition again)
               {
                    //Do some code
               }
               if (// Condition again)
               {
                   //Stop the first foreach then go back to first foreach
               }
          }
      }
  }
  </code></pre>
  
  <p>What I want to do is when I hit the 2nd <code>if</code> statement on the last <code>foreach</code> loop is to return on the first <code>foreach</code> loop. </p>
  
  <p>Note: If the 2nd <code>if</code> statement is not true, it should continue the last <code>foreach</code> loop until the condition is not true.</p>
  
  <p>Thanks in advance!</p>