Preferences Input Either/Or Required

Greetings everyone, I have been working on a room occupancy smart app that up until now just worked off of motion. Now I have a need to add a contact sensor. Anyone have an idea how I can make either the motion or contact sensor required, but not both? I have the ADT Smartthings panel and I am using the Smartthings IDE.