Skip to content

Instantly share code, notes, and snippets.

@Sambardo
Created February 28, 2018 19:10
Show Gist options
  • Save Sambardo/c026f4943474ec846c34ebbbfae49314 to your computer and use it in GitHub Desktop.
Save Sambardo/c026f4943474ec846c34ebbbfae49314 to your computer and use it in GitHub Desktop.
Switch sample for blog
$i = 1;
switch ($i)
{
1 {
write-host "one"
break
}
2 {
write-host "two"
write-host "two"
break
}
default {
write-host "other"
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment