M
M
MirinMusic2020-06-13 21:19:39
Adobe After Effects
MirinMusic, 2020-06-13 21:19:39

SyntaxError: Unexpected token else?

Please help me fix the error. Program Adobe After Effect
rate = 1;
clockStart = 0;

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);
min + ":" + padZero(sec)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question