Skip to content

Instantly share code, notes, and snippets.

@gislig
Created August 1, 2018 20:39
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 gislig/ff9c4de549cd4c6acb0497a66c429555 to your computer and use it in GitHub Desktop.
Save gislig/ff9c4de549cd4c6acb0497a66c429555 to your computer and use it in GitHub Desktop.
Simpler Way and in theory correct way to add parameter in a function
function DefaultValue([int]$valueParam = 10){
Write-Host $valueParam
}
DefaultValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment