Perhaps I'm missing something, but IMO bitwise switch is best approach here. I'd say, it looks like a classical case for it (like user rights etc :-). So, 1) map "abcd" to binary number: 0000 - all are false, 1111 - all are true, 1100 - a,b are true while c,d false. 2) convert to digital: 0000->0, 1111->15, 1100->3 and so on 3) checking is done, use some function to process if needed 4) in case you consider abc, cba and bca as different combinations (which makes sense only if they all are true), I can suggest use a "pattern" number/string for positions/order: 1234 means "abcd", 2341 means "bcda". Combining this with 1-2 points for "normal" order (abcd) will cover all combinations.
Hope this can help. -- Best regards, GregoryN ================================ http://GOusable.com Flash components development. Usability services. On 1/25/06, eric dolecki <[EMAIL PROTECTED]> wrote: > I have 4 variables I need to check the states of routinely... and > combinations thereof. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

