Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created May 11, 2020 20:54
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/396e4c2e658d33e7e0fc15cff0b44418 to your computer and use it in GitHub Desktop.
Save bielawb/396e4c2e658d33e7e0fc15cff0b44418 to your computer and use it in GitHub Desktop.
Komunikacja z wykorzystaniem parametrów/ wyjscia
$zmienna = 'Słowo'
function Set-Słowo {
param (
[String] $Słowo
)
"Moje $Słowo"
}
$nowaZmienna = Set-Słowo -Słowo $zmienna
"Wejście: $zmienna. Wyjście: $nowaZmienna"
<#
Na wyjściu:
Wejście: Słowo. Wyjście: Moje Słowo
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment