Created
August 1, 2018 20:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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