i am trying to add into the program for a pump to run Monday through Friday 7 am to 1 pm i have a small amount of experience in adjusting/writing code in GCL+. i have not had any luck getting this to work yet. i have tried inserting the new code towards the top and towards the bottom i have also tried IfOnce as a separate statement. but nothing is working. some one please help.

here is the program with no additions for the pump running at the designated times

If 'CTP-1-3 SW AUTO' Off And 'CTP--1-3 SW HAND' Off Then
'CTP-1-3 Pump Mode' = OutOfService
'CTP-1-3 ENB' = Off
'CT-1-3 Delay Timer' = 180
ElseIf 'CTP-1-3 SW HAND' On Then
'CTP-1-3 Pump Mode' = Hand
'CTP-1-3 ENB' = On
ElseIf ' CWCC Lead' = 1 And 'CTP-1-3 SW AUTO' On And 'CTP1-3 and -6 CALL' On Then
'CTP-1-3 Pump Mode' = AutoEnabled
'CTP-1-3 ENB' = On
ElseIf ' CWCC Lead' = 2 And 'CTP-1-3 SW AUTO' On And ' Lag Enable' On Then
'CTP-1-3 Pump Mode' = AutoEnabled
'CTP-1-3 ENB' = On
Else //If 'CTP1-3 and -6 CALL' Off Then
'CTP-1-3 Pump Mode' = AutoDisabled
'CTP-1-3 ENB' = Off
'CT-1-3 Delay Timer' = 180
End If

here is what i have been trying to insert i do not know if i am missing something or perhaps using the wrong format entirely.


ElseIf ' CWCC Lead' = 2 And 'CTP-1-3 SW AUTO' on And 'CTP1-3 and -6 CALL' On And ' Lag Enable' Off And (Weekday Between 1 5 And DecimalTime Between 700 1300) Then
'CTP-1-3 Pump Mode' = AutoEnabled
'CTP-1-3 ENB' = On
ElseIf ' CWCC Lead' = 2 And '-1-3 SW AUTO' On And 'CTP1-3 and -6 CALL' On And ' Lag Enable' Off And (Weekday Between 1 5 And DecimalTime > 1300) Then
'CTP-1-3 Pump Mode' = AutoDisabled
'CTP-1-3 ENB' = Off


Thanks in advance for any help in the matter