Powershell -contains and -notcontains
Using -contains and -notcontains with Powershell arrays.
Script:
Clear-Host
$numbers = 10, 33, 56
$numbers -contains 33
$numbers -notcontains 99
$numbers -notcontains 33
Returns:
True
True
False
Note: so, -contains and -notcontains works with arrays. I tried using with strings and it doesn't work.











