I am trying to insert a code snippet that allows users to call up a countdown timer via a keypress. The countdown should start at 15 and reset itself to 15 once it hit 0. However, currently it goes into the negative after 0.
So far I have inserted:
timer = core.CountdownTimer()
under the tab ‘before experiment’,
if timer == 0:
under the ‘begin experiment’ tab.
I don’t have any coding experience, so probably this is a really dumb approach. I appreciate your help! Thanks!