- May
- 13,834
- 211
This BTM works as it should until the end of the outer DO loop. When j becomes 3, it branches to the command after the INNER "enddo".
Code:
do j=1 to 2
timer /q
do i=10 to 1 by -1 | (wsl sort -n ^| wc -l)
echo %i
enddo
timer
echo.
enddo
Code:
v:\> wsltotest.btm
10
Timer 1 off: 18:32:57 Elapsed: 0:00:00.185
10
Timer 1 off: 18:32:57 Elapsed: 0:00:00.085
Timer 1 on: 18:32:57
TCC: V:\wsltotest.btm [8] Unknown command "enddo"
v:\>