Date: 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.
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

Profile

gdgrana: (Default)
David

August 2010

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
29 3031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 18th, 2025 08:06 am
Powered by Dreamwidth Studios