- Joined
- Oct 7, 2017
- Messages
- 598
- Reaction score
- 335
I'm adding lights in the cabinet, and wanted to get some help here. I was going to add these switches to my two doors so that when they are opened the light turns on. But my question is how would I code it so if both doors are open the light is on, or if either door is open the light is on, and the only way the light is off is if both doors are closed?
I figure:
set off
if Sw_1 open then on
if Sw_2 open then on
does that work or no?
I figure:
set off
if Sw_1 open then on
if Sw_2 open then on
does that work or no?
As an Amazon Associate we earn from qualifying purchases.

