powershell function return
function Add-Numbers{
param(
[int]$a = 6,
[int]$b= 10
)
return $a + $b # note this return part
}
$store = Add-Numbers -a 10 -b 20
Write-Output $store
powershell function return
function Add-Numbers{
param(
[int]$a = 6,
[int]$b= 10
)
return $a + $b # note this return part
}
$store = Add-Numbers -a 10 -b 20
Write-Output $store
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us