Benutzer-Werkzeuge

Webseiten-Werkzeuge


powershell:switch
no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


powershell:switch [2017/09/15 09:54] (aktuell) – angelegt ronny
Zeile 1: Zeile 1:
 +====== Switch-Anweisung ======
  
 +<code Powershell>
 +switch ($a)
 +{
 +   "Value1" {//Scriptblock//}
 +   "Value2" {//another Scriptblock//}
 +   default {//Scriptblock what to do, if no case//}
 +}
 +</code>
 +
 +Quelle: [[https://technet.microsoft.com/en-us/library/ff730937.aspx]]
 +
 +{{tag>[Powershell Switch Case]}}
powershell/switch.txt · Zuletzt geändert: 2017/09/15 09:54 von ronny

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki