If Not IsActive (Input1)  = True Then  LED = GetOEMLED(77)  ' 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 (OutPut4)Else If IsActive (Input1) And LED = False Then   ActivateSignal (OutPut4) End IfEnd IfIf Not IsActive (Input2)  = True Then  LED2 = GetOEMLED(78)  ' LED looks at state of Output 5 LEDEnd IfIf IsActive (Input2) And LED2 = True Then  ' looking at input 1 and LED of Output 5  DeActivateSignal (OutPut5)Else If IsActive (Input2) And LED2 = False Then   ActivateSignal (OutPut5) End IfEnd If         