Jump to content

"WAIT" command question.


eddyk

Recommended Posts

Posted

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 :?:

Posted

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.

Posted
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".

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...