title: How to use If statement during select from Linq to Datasets
body: <p>I have this LINQ statement </p>
  
  <pre><code>Dim Demo = From d In DBDataTable.AsEnumerable _                 
       Select id = d.Field(Of Integer)("id"), _
              Column = d.Field(Of Object)  (_column2), _
              Col3 = d.Field(Of Object)(_column3), _
              Col4 = IIf(_Col4 &lt;&gt; -1, d.Field(Of Object)(_Col4), Nothing)
  </code></pre>
  
  <p>Is there any way that I can use if/iif within select ?</p>