title: How to break a loop by a shorthand "if-else" result?
body: <p>Suppose I have got a shorthand if-else statement inside a loop as in this case :</p>
  
  <pre><code>for(...)
  {
      a = b == c ? b : c;
      // More unnecessary code if the result was true.
  }
  </code></pre>
  
  <p>And I would like to break the loop by the result of the condition:</p>
  
  <pre><code>for(...)
  {
      a = b == c ? b break : c;
      // Now the unnecessary code is not executed.
  }
  </code></pre>
  
  <p>I realize I could just type it in a full way as in this example:</p>
  
  <pre><code>for(...)
  {
      if( b == c )
      {
          a = b;
          break;
      }
      else
      {
          a = c;
      }
      // Now the unnecessary code is not executed.
  }
  </code></pre>
  
  <p>But it is too long and I am trying to have every breaking condition in a single line since there are several of them.</p>