Millisecond Forums

using the timer

https://forums.millisecond.com/Topic16307.aspx

By travelbird - 5/16/2015

Hi,

participants are playing a game and have a timelimit of 1 minute for a set of tasks. So I added a timer counting down from 1 minute, but now I need the whole block with the tasks to stop, if the time is up. I already added a /branch and a /skip, but either the whole block with the tasks is skipped or nothing happens when the time is up. Maybe they are wrong?? My timer has the / format = "mm:ss".

/ branch= [if (clock.stoppuhr == 00) block.results1]
/ skip = [clock.stoppuhr == 00]

thanks already!

By Dave - 5/16/2015

If you want a <block> to stop after a certain amount of time, use the <block> element's /timeout attribute:

<block someblock>
...
/ timeout = 60000
</block>
By travelbird - 5/16/2015

right! why not go simple ;)
thanks a lot!