If Not IsActive (Input1)  = True Then  LED = GetOEMLED(78)  ' LED looks at state of Output 5 LEDEnd IfIf IsActive (Input1) And LED = True Then  ' looking at input 1 and LED of Output 5   DeActivateSignal (OutPut5)Else If IsActive (Input1) And LED = False Then   ActivateSignal (OutPut5) End IfEnd If     