ext_40230 ([identity profile] kane-magus.livejournal.com) wrote in [personal profile] gdgrana 2010-03-20 04:21 pm (UTC)

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.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting