PowerShell and command line boolean operators
[bool] $choice = Read-Host "\`nType 'Yes' to view top files or 'Enter' to continue" How can I force the boolean $choice to $true whenever the answer is yes and $false whenever the answer is not yes?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.