>>10 looks interesting.. your using < and > like { and } ?, with semicolon still breaking up lines of code..?
A dynamic loop might start off being
for(iter = 1:10)
i++;
endfor;
for one (the first) iter, but then with the right inner loop code, may change into something else entirely... or that's the basic idea anyway