local integer i = 0
loop
exitwhen i >= 10
//code to run goes here
set i = i + 1
endloop
set i = 2
loop
exitwhen i >= 20
//code to run goes here
set i = i + 2
endloop
set i = 1
loop
exitwhen i >= 15
//code to run goes here
set i = i + 1
endloop
//AND SO ON...