OverloadGroups for more than one set

I am writing a custom activity where I need 2 independent overload group sets for lack of a better description. I need for input variables var1 or var2 AND var3 or var4. I have followed all of the instructions but cannot seem to get this one to work. I should add that I need to require one from each set is selected as well.