-
Count up expression starting with multiple zeros?
Hi!
I have a count-up expression currently that count up from 0 to 10000.
Problem is I need it to start from 0000 to 10000.
The expression looks like this. Is it possible to rewrite it to start with multiple zeros with the count going from right to left?
Thanks!
————————————————————————————–
slider =effect(“Slider Control”)(“Slider”);
startCount = 0;
endCount = 10000;
s = “” + Math.round(linear(slider,0,100,startCount,endCount));
s.replace(/\B(?=(\d{3})+(?!\d))/g, “”);
————————————————————————————–