Powershell Functions with parameter binding

The Script 😉 Code is simple and self-explanatory function f1 { param($argone, $argtwo) begin{ # Only gets process at the Beginning # Normally include Variable initialization if($argone -eq $null -or $argtwo -eq $null) { Write-Host “`nFunction called with 0 args” $argone = “Grape” $argtwo = “Mango” } else { Write-Host “`nFunction called with args” } …

WordPress Appliance - Powered by TurnKey Linux