Updates from: 07/09/2021 03:12:21
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core About Comparison Operators (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
$a, "ghi" -contains $a # Output: True
### -in and -notin
-The `-in` and -`notin` operators were introduced in PowerShell 3 as the
-syntactic reverse of the of `contains` and `-notcontain` operators. `-in`
+The `-in` and `-notin` operators were introduced in PowerShell 3 as the
+syntactic reverse of the of `-contains` and `-notcontains` operators. `-in`
returns **True** when the left-hand side `<test-object>` matches one of the elements in the set. `-notin` returns **False** instead. When the test object is a set, these operators use reference equality to check whether one of the set's elements is the same instance of the test object.
-The following examples do the same thing that the examples for `-contain`
-and `-notcontain` do, but they are written with `-in` and `-notin` instead.
+The following examples do the same thing that the examples for `-contains`
+and `-notcontains` do, but they are written with `-in` and `-notin` instead.
```powershell "def" -in "abc", "def" # Output: True
Microsoft.PowerShell.Core About Comparison Operators (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
$a, "ghi" -contains $a # Output: True
### -in and -notin
-The `-in` and -`notin` operators were introduced in PowerShell 3 as the
-syntactic reverse of the of `contains` and `-notcontain` operators. `-in`
+The `-in` and `-notin` operators were introduced in PowerShell 3 as the
+syntactic reverse of the of `-contains` and `-notcontains` operators. `-in`
returns **True** when the left-hand side `<test-object>` matches one of the elements in the set. `-notin` returns **False** instead. When the test object is a set, these operators use reference equality to check whether one of the set's elements is the same instance of the test object.
-The following examples do the same thing that the examples for `-contain`
-and `-notcontain` do, but they are written with `-in` and `-notin` instead.
+The following examples do the same thing that the examples for `-contains`
+and `-notcontains` do, but they are written with `-in` and `-notin` instead.
```powershell "def" -in "abc", "def" # Output: True
Microsoft.PowerShell.Core About Comparison Operators (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
$a, "ghi" -contains $a # Output: True
### -in and -notin
-The `-in` and -`notin` operators were introduced in PowerShell 3 as the
-syntactic reverse of the of `contains` and `-notcontain` operators. `-in`
+The `-in` and `-notin` operators were introduced in PowerShell 3 as the
+syntactic reverse of the of `-contains` and `-notcontains` operators. `-in`
returns **True** when the left-hand side `<test-object>` matches one of the elements in the set. `-notin` returns **False** instead. When the test object is a set, these operators use reference equality to check whether one of the set's elements is the same instance of the test object.
-The following examples do the same thing that the examples for `-contain`
-and `-notcontain` do, but they are written with `-in` and `-notin` instead.
+The following examples do the same thing that the examples for `-contains`
+and `-notcontains` do, but they are written with `-in` and `-notin` instead.
```powershell "def" -in "abc", "def" # Output: True
Microsoft.PowerShell.Core About Comparison Operators (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
$a, "ghi" -contains $a # Output: True
### -in and -notin
-The `-in` and -`notin` operators were introduced in PowerShell 3 as the
-syntactic reverse of the of `contains` and `-notcontain` operators. `-in`
+The `-in` and `-notin` operators were introduced in PowerShell 3 as the
+syntactic reverse of the of `-contains` and `-notcontains` operators. `-in`
returns **True** when the left-hand side `<test-object>` matches one of the elements in the set. `-notin` returns **False** instead. When the test object is a set, these operators use reference equality to check whether one of the set's elements is the same instance of the test object.
-The following examples do the same thing that the examples for `-contain`
-and `-notcontain` do, but they are written with `-in` and `-notin` instead.
+The following examples do the same thing that the examples for `-contains`
+and `-notcontains` do, but they are written with `-in` and `-notin` instead.
```powershell "def" -in "abc", "def" # Output: True