Slider Expression Error
So I was trying to create the countdown effect using the number slider effect. I saw instructions on how to do this on youtube, but when I followed their instructions, there was an error in the expression. Namely, the expression I typed was this...
slider = Math.round(effect("Slider Control")("Slider"))
sec = slider%60
min = Math.floor(slider/60)
function addZero(n){ if (n<10) return "0" + n else return n }
addZero(min) + ":" + addZero(sec)
And it said, "Invalid numeric result (divide by zero)" . Which was weird because it never said that when other youtubers typed the expression. Also, I even changed the settings from "JavaScript" to "Extended Script" but nothing is working. If you can help me out that would be great as this issue is driving me crazy.
