title: Conditional LINQ query in foreach
body: <p>I have a multiselection box and I would like to iterate over the selected items and do a linq query, but I'm not sure how to write it.  This is what I have so far:</p>
  
  <pre><code>if (lbStateLegislation.Items.Count &gt; 0)
  {
    foreach (ListItem li in lbStateLegislation.Items)
      attributes = vdc.attributes.Where(a =&gt; a.fieldvalue == li.Value).ToList();
  }
  </code></pre>
  
  <p>I basically need to construct an OR query, so it is selecting from the collection where there are values for each of the selected items.  I think, as it's written now, it is doing an AND query.</p>