How can I create a timer that stops when a value = 0?
I want to make a timer where when a value = 0 then it resets the timer. Essentially when the value = 1 it starts the timer and counts down from 20 to 0 but if the value = 0 then it stops and resets the timer and doesn't count down. How can I go about doing this?
