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 0be056a commit 2e2e597Copy full SHA for 2e2e597
language/operator/in/is-in-array.ps1
@@ -0,0 +1,9 @@
1
+$value = 'bar'
2
+if ($value -in 'foo', 'bar', 'baz') {
3
+ write-host "$value is in array"
4
+}
5
+
6
+$value = 'xxx'
7
+if ($value -notIn 'foo', 'bar', 'baz') {
8
+ write-host "$value is not in array"
9
0 commit comments