Hi All,
can anyone help me understand why powershell sees the numbers in the string below as Upper case characters? the issue is it returns "Whoa, chill out!" instead of "Whatever."
<#function Get-BobResponse { param ([string] $HeyBob)
if ($HeyBob -ceq $HeyBob.ToUpper()) {
return "Whoa, chill out!"
}
else {
return "Whatever."
}
}
Get-BobResponse -HeyBob "1, 2, 3"
#>