I may not have had enough coffee, but this is script not working and I am not sure why, any suggestions?
Thank You As Always
Matt
IF (Day in Monday, Tuesday, Wednesday, Thursday, Friday(T) AND
Time is 6:25 AM CDT(F) [FALSE]) THEN
On: Tristen TV
ELSE-IF (Day in Monday, Tuesday, Wednesday, Thursday, Friday(T) AND
Time is 6:55 AM CDT(F) [FALSE]) THEN
Off: Tristen TV
ELSE-IF (Day in Monday, Tuesday, Wednesday, Thursday, Sunday(T) AND
Time is 10:30 PM CDT(F) [FALSE]) THEN
ELSE-IF (Day in Friday, Saturday(F) AND
Time is 11:30 PM CDT(F) [FALSE]) THEN
Off: Tristen TV
END-IF
Triggers:
On Mon, Tue, Wed, Thu, Fri at 6:25 AM CDT
On Mon, Tue, Wed, Thu, Fri at 10:30 PM CDT
On Sun, Sat at 11:30 PM CDT
On Mon, Tue, Wed, Thu, Fri at 6:55 AM CDT
your problem is that you check for a very specific time and not for a time range.
So, you trigger is 6:25 AM, or more specifically, it is at 6:25:00.000 AM (seconds and milliseconds).
Now you are checking in your if rule if the time is = 6:25:00.000 AM, however, a millisecond here or there might have passed for processing, so by the time you reach your first IF the time is actually 6:25:00.123 AM and the comparison you do is not TRUE anymore.
When using time in IFs, it is always advised to use "time in between" to accommodate processing times.
So I would change you rules to:
IF (Day in Monday, Tuesday, Wednesday, Thursday, Friday(T) AND
Time is between 6:25 AM CDT and 6:27 AM CDT) THEN
....
ELSE IF ELSE-IF (Day in Monday, Tuesday, Wednesday, Thursday, Friday(T) AND
Time is between 6:55 AM CDT AND 6:57 AM CDT) THEN
...
ELSE-IF (Day in Monday, Tuesday, Wednesday, Thursday, Sunday(T) AND
Time is between 10:30 PM CDT(F) and 10:32 PM CDT) THEN
.... <- BTW you are missing a statement here so you last ELSE-IF wouldn't fire as you want to
ELSE-IF (Day in Friday, Saturday(F) AND
Time is 11:30 PM CDT and 11:32 PM CDT) THEN
...
END IF