Trying to make a standalone signal system...

It used to be turnoutNormal and turnoutReverse. Would u have a short example of that function your talking about? Any suggestions on the pushbutton code?

Thanx
Harrison