Or, in special cases, use FOR/NEXT loops. FOR X=<INITIAL NUMBER> TO <END NUMBER> <CODE> NEXT