How to switch gear mates?

Hi,
I have a compound gear and a normal gear. Can I define two gear mates here? One mate for the normal gear with the smaller gear in the compound gear and one mate for the normal gear with the bigger gear in the compound gear.

Saying it in another way, can I keep the gear mate from working when the gears are not coincident?

Thanks in advance.