When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Here is a rough schematic of what I have used in the past. Each switch has three positions but only one position on each is valid to complete the circuit. This circuit could include a relay if necessary, it all depends on the current capacity of the switches used.