Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Scripting >> Powershell >> Syntax >> If and Switch statements

If == $a = "white" if ($a -eq "red") { "The colour is red" } elseif ($a -eq "white") { "The colour is white" } else { "Another colour" } Switch ====== $a = red switch ($a) { "red" {"The colour is red"} "white" {"The colour is white"} default {"Another colour"} }
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]