for(var = 1; var < 5; inc var) {
msg # %var
}

so that it does the same as:

set %var 1
while(%var < 5) {
msg # %var
inc %var
}