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