If it's a small number of instances and a one time thing you could use global variables, then the condition becomes if GV2,GV4,GV6 is true and GV1,GV3,GV5 is false. If the plan is to change the pattern all the time then developing a method with an array and slotting in a number pattern seems like the best way.