Thanks. It seems that one problem solved = new problem ! I’m obviously not in a ‘coder’ mindset yet !
I can stop at a given time point, but I’m unable to reset the text to 0.0 at the end. Am I using wrong code or ( or { in the wrong place ?
$w ( ‘#myText’ ). text = “0.0”
let current = 0.0 ;
let end = 0.2
let minReset = 0.0
let myTimer ;
myTimer = setInterval (() => {
current += 0.1 ;
$w ( ‘#myText’ ). text = “” + current . toFixed ( 1 );
current == end && clearInterval ( myTimer );
console . log ( current );
}, 6000 );
$w ( '#myText' ). text = "0.0" ;