Help with a “But If” statement

I am sure this has been answered before but I can’t seem to find it so I need help. I have a piston set up that when the back door is opened it turns on the lights outside for 3 min then shuts off. Simple enough but I would like to set it up if I hit any one of the switches that control the lights that I turned on that it canceled the piston and then leaves the lights on… I have two different pistons set up with this so it would be nice to get this figured out below is what the piston currently looks like…

!

I can’t find a “but if” Button anywhere! Thanks in advance

Hahaha, there isn’t a but if though…

Or if is the closest one but I don’t want it to go through each one and troubleshoot… any ideas?