in reply to Building If Statements

It sounds like you are building a Finite State Machine.

For a small number of states and rules, you could probably build you own dispatch table.

If it gets beyond 7 or 8 rules, I'd recommend looking at DFA::Simple.

     Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)