Button true or false

Hello everyone, I have a question. Is there a way to set the click and long click assignment for a button individually to true or false.

Like this ?

image

1 Like

I have to explain what I'm going to do. I have three buttons, start, stop and reset. A stopwatch runs on the action click and a countdown runs on the long click, the countdown is displayed in 00:00:00.
The problem is when I kick Start long it inserts a 0 into the countdown 000:000:000 or 0001:10:50.
How can I avoid this.

Here is some countdown code for you:

This draggable function will force two digits:

Thanks, it works perfectly, I can now also use this for my stopwatch.

If any post solved your problem, mark it as solved.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.