We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a44aea commit 9a9aacaCopy full SHA for 9a9aaca
language/statement/switch/assignment.ps1
@@ -0,0 +1,11 @@
1
+set-strictMode -version 3
2
+
3
+$num = 2
4
5
+$txt = switch ($num) {
6
+ 1 { 'one' }
7
+ 2 { 'two' }
8
+ 3 { 'three' }
9
+}
10
11
+write-host "txt = $txt"
0 commit comments