loop_code gives you macro loop_code::repeat which allows you to repeat blocks of code an arbitrary number of times.
loop_code
loop_code::repeat