Powershell IF
Version vom 8. November 2017, 19:58 Uhr von Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Einfache IF Verzweigung= <pre> $x = 20 $y = 10 if ($x -gt $y) { '$x is greater than $y' } </pre> =IF mit ELSE= <pre> $x = 10 $y = 20 if ($x -gt $y) { '$x is g…“)
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'
}