title: How to terminate outer loop in nested loops?
body: <p>What is the best way to terminate all nested loops in the example below. Once the if statement is true, I want to terminate the outer for statement (with I). In the other words I need the whole loop to stop. Is there better way than setting I to 10?</p>
  
  <pre><code>for (int I = 0; I &lt; 10; I++)
  {
      for (int A = 0; A &lt; 10; A++)
      {
          for (int B = 0; B &lt; 10; B++)
          {
              if (something)
                  break;
          }
      }
  }
  </code></pre>