Two loops possible?

I think that compiles because interval is defined within the loop(), so it goes out of scope and is recreated anew with each cycle. It is questionable coding style, though: I'd rather make it a global variable defined at top level.