Jump to content

"WAIT" command question.


eddyk

Recommended Posts

I need help understanding the "WAIT" command.

 

IF 
KPL button G is OFF
And KPL button G is turned ON

THEN
WAIT 2 seconds
SET Scene "for goodnight KPL button control" OFF.

 

This program executes correctly ONLY when the WAIT command is removed.

 

Does this mean that if the condition (IF) changed during the wait time, the program will not execute the next command in THEN :?:

 

If so, how do I create a timer that does not worry about the IF state once the condition was met :?:

Link to comment

The Program triggers initially because the KPL button is Off. When the Status of the KPL becomes On the If condition has changed causing the If to be reevaluated because of the Wait.

 

Separate the If and Then clauses in different Programs. That way the change in the If conditions during the Wait do not affect the Program containing the Then clause.

Link to comment
Does this mean that if the condition (IF) changed during the wait time, the program will not execute the next command in THEN

The quick and simple answer is yes. This is also true with "repeat" commands.

 

LeeG offered the standard solution for this "problem".

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...