Nested setintervals

I wan’t to have a set interval thread start new setintervals inside of it every time the most-nested one completes.

I feel like i’ve tried it six ways from sunday, but the program either halts or runs 1 loop.

do I need to do something special about namespaces / variable scope?