title: Conditional LINQ where statement?
body: <p>I have a linq statement that I want to add an additional where clause to if a drop down index is not 0.</p>
  
  <pre><code>people.Where(n.surname == "surname" || n.forename == "forename" &amp;&amp; (dropdown.SelectedIndex &gt; 0) ? n.id = dropdown.SelectedValue : n.id  &gt; 0).Select(n =&gt; n);
  </code></pre>
  
  <p>I am not even sure if what I am trying is possible??</p>
  
  <p>I would like to do this rather than having to write two different statements.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>