Created
November 5, 2012 15:05
-
-
Save kyle-herzog/4017635 to your computer and use it in GitHub Desktop.
Examples for using ConvertTo-Boolean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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