You can, but you also need to be careful. remember that with the && and || operators, as soon as the statement can be determined, it stops looking at the other parts... also, just because you CAN do something, doesn't mean you should do something... i've seen IF conditions with upwards of 12 terms, nested 4 or 5 parens deep. this is EXTREMELY HARD to write, and even worse, harder to debug 6 months down the road. if you can break up your tests at all, debugging is so much simpler.
note: there are better ways to do this, but this works ok. [ January 08, 2004: Message edited by: fred rosenberger ]
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors