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"} }