Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created June 23, 2020 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/7ef0ccb9fa1fec2e6c88cee246667504 to your computer and use it in GitHub Desktop.
Save bielawb/7ef0ccb9fa1fec2e6c88cee246667504 to your computer and use it in GitHub Desktop.
Wykorzystanie zmiennych do bieżącej wartości obiektu
switch -Regex ('pasujące słowo') {
pas {
"Pasuje: $_"
}
s.o.o {
$switch.Current * 2
}
}
<#
Na wyjściu:
Pasuje: pasujące słowo
pasujące słowopasujące słowo
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment