-
Countdown clock expression error
I could do with some help on this countdown clock please.
I’ve got a script off the internet but it’s kicking up an error and I’m not sure why…
This is the section of expression
// Round to whole numbers and add zero padding
for (i in f){ f[i] = String(Math.floor(f[i])).padStart(i>2?3:2, “0”) }
and this is the error message
The error reads : Error at line 17 ‘Source Text’ of layer 1(‘Timer’) in comp ‘Comp 17’. String ().padStart is not a function.
w
I hope you can help. Many thanks in advance.