Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Created August 8, 2020 21:42
Show Gist options
  • Save smaglio81/700cc05d5e596b2f7b0948027cefb087 to your computer and use it in GitHub Desktop.
Save smaglio81/700cc05d5e596b2f7b0948027cefb087 to your computer and use it in GitHub Desktop.
function ffff($Value) {
switch($Value) {
{0..24 -contains $_} { $a = 0 }
{25..49 -contains $_} { $a = 1 }
{50..74 -contains $_} { $a = 2 }
{75..99 -contains $_} { $a = 3 }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment