eddyk Posted December 18, 2010 Posted December 18, 2010 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
LeeG Posted December 18, 2010 Posted December 18, 2010 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.
oberkc Posted December 18, 2010 Posted December 18, 2010 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".
Goose66 Posted December 19, 2010 Posted December 19, 2010 Another issued caused by the lack of ability to seperate trigger events from IF conditions!
Recommended Posts