If Else Statement not working?
Hey,
Before the 2019 update for After Effects, my expression for a countdown clock was working a treat. Now the If else statement seems to have had a definition change and I can't seem to find where the issue is. Does anyone have an idea of what could be happening?
Here is the original expression:
rate = -1;
clockStart = 899.97;
function padZero(n){
if (n < 10) return "0" + n else return n;
}
clockTime = Math.max(clockStart + rate*(time - inPoint),0);
t = Math.floor(clockTime);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
msec = clockTime.toFixed(2).substr(-2);
padZero(min) + ":" + padZero(sec) + ":" + msec;
Thanks
