View Single Post
Old 10-26-2006, 11:55 AM   #8 (permalink)
Courageous
Forum Expert
 
Courageous's Avatar
 
Join Date: Nov 2005
Location: San Diego, CA
Posts: 1,824
Default

Code:
if (a==xx && b==zz)
else if ..
I think the above is the clearest and most legible. Your prior remark about having just one check for a with all the b checks embedded was correct as well. Generally the beginner should start with that form before chaining logical ands together (as you show above), on the grounds that the results can be a bit confounding in more complicated cases.

C//
Courageous is offline   Reply With Quote