And to answer the actual question
;
code:
for (do_initially; do_while; do_after_each_loop) {
<Insert Code Here>
}
For example:
code:
for (var $i = 1; $i <= 10; $i++) {
Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}