Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: -or Returning a false positive ??

$
0
0
if (($foo -Contains 'X') -or ($foo -Contains 'Z')) {Write-Output $foo}

Should give you what you expect.


Viewing all articles
Browse latest Browse all 13067

Trending Articles