title: Press X to exit or any other key to continue?
body: <p>Grrr...  Noob question here.  I want to create a block that basically does this:</p>
  
  <pre><code>Write-Host "Press X to cancel or any other key to continue"
  $continue = Read-Host
    If ($continue = "X") 
       {exit}
    else 
       {Write-Host "Hello world"}
  </code></pre>
  
  <p>Keeps exiting even if I press another key...  What am I doing wrong?   Thanks!!!</p>