Yeah, as it seems you already figured out, in that example it would've only checked to see if varB were not "bar" and if not it would have returned true without checking the second part even if it was "baz," or if it was "bar" it would still be true because it isn't "baz". Also, you don't even really need to nest it, not that it hurts much to do so. Just change the || to another && and take out the nested parentheses, and it should still work.
In my own stuff over the years I have lost untold hours due to simple stuff like that.
no subject
In my own stuff over the years I have lost untold hours due to simple stuff like that.