#Countdown

1 messages · Page 1 of 1 (latest)

stray dust
#

It show 5:399 idk how to fix this

  trigger:
    set {_m} to 5
    set {_s} to {_m} * 60
    loop {_s} times:
      if {_s} is 0:
        set {_s} to 60
        remove 1 from {_m}
      remove 1 from {_s}
      send "%{_m}%:%{_s}%"
      wait 1 second```
jovial lynx
#

Wdym

#

Why not just use a timespan

#
while now < {_t}:
  send difference between {_t} and now
  wait 1 second```
stray dust
#

i want that the countdown it will show like 4:59

jovial lynx
#

Or

while now < {_t}:
  set {_w} to difference between {_t} and now
  send "%minutes of {_w}%:%(seconds of {_w}) - (minutes of {_w} * 60)%"
  wait 1 second```
stray dust
#

ok

jovial lynx
#

Either should work

stray dust
#

i have skbee