title: The PowerShell -and conditional operator
body: <p>Either I do not understand the documentation on MSDN or the documentation is incorrect.</p>
  
  <pre><code>if($user_sam -ne "" -and $user_case -ne "")
  {
      Write-Host "Waaay! Both vars have values!"
  }
  else
  {
      Write-Host "One or both of the vars are empty!"
  }
  </code></pre>
  
  <p>I hope you understand what I am attempting to output. I want to populate $user_sam and $user_case in order to access the first statement!</p>