Benutzer-Werkzeuge

Webseiten-Werkzeuge


powershell:switch

Switch-Anweisung

switch ($a)
{
   "Value1" {//Scriptblock//}
   "Value2" {//another Scriptblock//}
   default {//Scriptblock what to do, if no case//}
}

Quelle: https://technet.microsoft.com/en-us/library/ff730937.aspx

powershell/switch.txt · Zuletzt geändert: 2017/09/15 09:54 von ronny

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki