Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
rePS
0.1.0
Exercises/Functions/func-switch-param/solution.ps1
function
Get-Shout
{
param
(
[
Parameter
(
Mandatory
)
]
[string]
$Text
,
[switch]
$Loud
)
if
(
$Loud
)
{
"$($Text.ToUpper())!"
}
else
{
$Text
}
}