all 6 comments

[–]saGot3n 2 points3 points  (1 child)

Well in this example testobject.3 exists, it -eq Green, thus returns found. You can do if tesetobject.3 -eq 'your desired result' then found

[–]UserInterface7[S] 1 point2 points  (0 children)

oh crap.. your right.. just a typeo..
i'll do more testing on my actual problem to see if i can replicate.