title: How to check empty/null CSV value?
body: <p>The following code </p>
  
  <pre><code>"a,b,c
  1,1,1
  2,,2
  3,3,3" &gt; test.csv
  
  import-csv test.csv | select b | % { 
      Write-Host "$_ $([string]::IsNullOrEmpty($_))" 
  } 
  </code></pre>
  
  <p>returns</p>
  
  <pre>
  @{b=1} False
  @{b=} False
  @{b=3} False
  </pre>
  
  <p>However, I expected the second line return <code>True</code>. I tried <code>$_ -eq $null -or $_ -eq ''</code> and none if them work?</p>