Skip to content

Instantly share code, notes, and snippets.

@kyle-herzog
Created November 5, 2012 15:05
Show Gist options
  • Save kyle-herzog/4017635 to your computer and use it in GitHub Desktop.
Save kyle-herzog/4017635 to your computer and use it in GitHub Desktop.
Examples for using ConvertTo-Boolean
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value")
Enter a true or false value: true
True
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value")
Enter a true or false value: t
True
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value")
Enter a true or false value: false
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment