Forum Discussion
LewisMasling-2a
3 years agoCommunity Member
Adding and subtracting numbers as time on user click
Hi,
I have a course where a user needs to select some options and each have a time impact.
I'd like to display the time in an hours, minutes format.
I can easily count the time of ea...
LewisMasling-2a
3 years agoCommunity Member
yes
- SteveGannon3 years agoCommunity Member
Lewis,
Use two variables, one for hours, the other for minutes. Using triggers, when minutes gets to 60, add 1 to hours and reset minutes to 0. Create a custom state for the text box displaying the time to accommodate the time when minutes is less than 10. In that custom state, insert a leading 0 (so that 4:9 displays as 4:09).
There are many, many timer examples in the forums to help get you started.