and you are running the following PowerShell command to check if the results contain a value…
"SELECT code FROM dbo.users"
It will return
Now we know that the
FALSEis false because we know that the string is in there!
This code is proven to work with arrays as stated here by the “Hey, Scripting Guy!”s so this was getting filed under “WTF PowerShell”
It’s a good post, so check it out and remember that DataRows aren’t strings.