Reply To: Stopping a timer

PennController for IBEX Forums Support Stopping a timer Reply To: Stopping a timer

#7284
Jeremy
Keymaster

Hello,

Your logic is good, but you start and wait for all the Timer elements you create by default, so the “stop early” Key element is created only after the “delay” Timer element has ended. Move newKey("stop early", "FJ").callback( getTimer("delay").stop()) just above newTimer("delay", 2000) and it should work (you don’t need the start and wait commands on the “delay” Timer element—nor on the “break” one, since those are executed by default)

Jeremy