title: Is it possible for a 'foreach' loop to have a condition check?
body: <p>If I have a <code>foreach</code> loop, is there any way to check a boolean as well?</p>
  
  <p>I don't want to check once inside the <code>foreach()</code> and then break for example. I want to <code>foreach</code> over a collection and at the same time evaluate if something is true.</p>
  
  <p>For example, I don't want to do:</p>
  
  <pre><code>    IEnumerable&lt;Job&gt; jobs = currentJobs;
  
      foreach(Job job in jobs)
      {
          if (found) 
              break;
      }
  </code></pre>