Why is this not working


#1


#2

You have a second IF with no condition.

Should be:

IF
-Time is not between 7:00:00 AM and 9:00:00 PM
-and
-Lock 1’s status stays ‘unlocked’ for 15 minutes
THEN
-with
–Lock 1
-do
–Lock
END WITH


#3

also… instead of $status use lock

Lock 1’s lock stays unlocked for 15 minutes


#4

Thats better thanks Guys