Boolean algebra would simplify the conditions. Polymorphisim could obliviate them all together. I'm not entirely certain how it would apply to this specific information (as I suspect I do not fully understand the OP's problem), but this is generally the case.
Still, you get a ++ from me for bringing up a concept which is significantly undervalued. Besides, Boolean algebra is fun :)
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
In reply to Re^2: Checking lots of conditions...ORed and ANDed
by hardburn
in thread Checking lots of conditions...ORed and ANDed
by TVSET
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |