do datatype variable=start,stop,increment {commands}
Repeatedly run a set of commands while stepping the value of a local variable.
datatype variable
start
stop
start
commands
do PointingOffset daz = -0:10, 0:10, 0:2 print "Moving to azimuth offset=", $daz do PointingOffset del = -0:10, 0:10, 0:2 print "Moving to elevation offset=", $del offset/set az=$daz, el=$del ...other commands... } }
break
command. Similarly,
the next iteration of the loop can be started before
the current iteration has been completed via the
next
command.