title: If condition in LINQ count clause using expression method
body: <p>My data looks like:</p>
  
  <pre><code>A    | B
  80   | 80
  90   | 10
  80   | NULL
  </code></pre>
  
  <p>I count all non Null values of B with</p>
  
  <pre><code>.C = eGroup.Count(Function(x) x.IsBNull = False)
  </code></pre>
  
  <p>But I need another condition in my expression since I just want to count if A >= B. </p>
  
  <p>I tried </p>
  
  <pre><code>.C = eGroup.Count(Function(x) x.IsBNull = False And x.A &gt;= x.B)
  </code></pre>
  
  <p>but I get an error as soon as the B is NULL. </p>
  
  <p>EDIT:
  I get my data from a dataset
  I have a field "Teams" and group my dataset by teams befor I use the query above:</p>
  
  <p>dim query = From row in _dataset.DS
  Group row by row.Team Into eGroup = Group</p>