- May
- 13,125
- 180
The help says a counter DO loop sets an environment variable to the value of it's counter. Maybe so, but it doesn't use the current value of that environment variable when iterating. Below I'd expect to see just 1. But
It would be quite useful to be able to jump ahead (maybe even backward) in a counted DO loop.
Code:
v:\> type dotest.btm
do i=1 to 3
echo %i
set i=%@eval[%i+10]
enddo
v:\> dotest.btm
1
2
3
It would be quite useful to be able to jump ahead (maybe even backward) in a counted DO loop.