powershell if statment code example
Example 1: powershell else if
$num = 9
if ($num -gt 10)
{
"$num is greater than 10"
}
else
{
"$num is NOT greater than 10"
}
Example 2: powershell else if
if (condition) {
# Whatever
}
elseif (condition) {
# Whatever
}