#powershell: Fun with Switch Statement Part 1

You may be surprised by the result against matching input to the following #powershell switch statement …

switch ($d) { { “default” } { “d” } { “others” } { “o” } }
#
$d = “Default”
$d = “others”
#
d
o

../to be continued

Bookmark the permalink.

Leave a Reply