Last active
February 28, 2018 19:20
-
-
Save Sambardo/9e05630c79ea65306279a0260c52c54c to your computer and use it in GitHub Desktop.
basic -eq sample for blog
This file contains 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
switch("hello") #will match uppercase | |
{ | |
"HELLO" {write-host "Uppercase" -ForegroundColor Magenta;break} | |
"hello" {write-host "lowercase" -ForegroundColor green;break} | |
} | |
switch("hello") #will NOT match h* | |
{ | |
"h*" {write-host "wildcard" -ForegroundColor Magenta;break} | |
"hello" {write-host "lowercase" -ForegroundColor green;break} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment