This simple code doesn't run, incredible

in timeline if you write

a=5;
if (a>1) {
trace(“I’m inside the if’s statements yeah!”);
doOnce = setInterval(mytrace, 100, “This is a test!”);
function mytrace(str) {
trace(str);
clearInterval(doOnce);
}
}
the output is only: I’m inside the if’s statements yeah!
why is “This is a test!” never traced?
Is it a matter of clearInterval scope ? I don’t understand, help