Tset 1,0 //Initialize the timer and turn it off Onchange "Test", "@delaytest()" Ontimer 1, "@timeroff()" Function delaytest() Tset 1,5 //In this example once the function is started, it will create a 5 second delay Print"timer started" Endfn Function timeroff() Print"Function was executed after a 5 second delay" //In this section you can perform the actual delayed function Tset 1,0 //Turns the timer back off afterwards Endfn