Don’t have a piston setup yet but how do I do a BUT IF?
If door is open, turn lights on, but if door shuts, turn lights off.
Or do I need two pistons that say If door opens, turn lights on.
Another sayings if door shuts, turn lights off.
Don’t have a piston setup yet but how do I do a BUT IF?
If door is open, turn lights on, but if door shuts, turn lights off.
Or do I need two pistons that say If door opens, turn lights on.
Another sayings if door shuts, turn lights off.
Something like this will do it for you.
IF
Door Contact Changes to Open
THEN
With Lights
DO
Turn On.
ELSE IF
Door Contact Changes to Closed.
THEN
With Lights
DO
Turn Off.