Powershell IF
Einfache IF Verzweigung
$x = 20
$y = 10
if ($x -gt $y)
{
'$x is greater than $y'
}
IF mit ELSE
$x = 10
$y = 20
if ($x -gt $y)
{
'$x is greater than $y'
} else {
'$x is less than $y'
}
$x = 20
$y = 10
if ($x -gt $y)
{
'$x is greater than $y'
}
$x = 10
$y = 20
if ($x -gt $y)
{
'$x is greater than $y'
} else {
'$x is less than $y'
}