title: Consider a bool in a foreach loop
body: <p>This should be some easy points for someone I expect, but as a Front End developer trying to get to grips with MVC razor with zero prior knowledge of C# this has me stumped.</p>
  
  <p>I have a boolean var <code>hasSecond</code> which I would would like to consider in the following <code>foreach</code>:</p>
  
  <pre><code>@foreach (PODO_AcceptRejectReasons reason in reasonList2.Where(e =&gt; e.Type == 1))
      {
          &lt;option data-confirm-type="1" data-confirm-attr="@reason.Attribute" value="@reason.ID"&gt;@reason.Text&lt;/option&gt;
      }
  </code></pre>
  
  <p>I only want to display an option with a <code>@reason.Atrribute</code> value of 'SECOND' when <code>hasSecond</code> is <code>true</code>, otherwise do not display these options.</p>
  
  <p>Thanks for your help!</p>