Wire button help

I have been working on a Rail Road Crossing. Everything is done except 1 thing. The gate. I used the normal hydraulics and a user. Im going to use target finders to a gate and a soundemitter. The gate controlls the ligths and the sound emitter the sound. The gate needs to have constant input of 1. Sound emitter also needs that. I put target finders in the track around the crossing. I linked them up. They are working fine. But the gate is controlled by hydraulics and a user. The user needs to get at the beginning a input of 1 and at the end also needs a input of 1. In between it needs to be 0. Is there any way this is possible? I was thinking with constant values but it needs a toggle to switch between them.