ENDS A LOOP "FOR" WHICH USES THE VARIABLE V AS A COUNTER
ACTION
The command NEXT is associated with the command "FOR V=S TO E" to define a group of statements and to use a variable V as a counter.
When NEXT is executed, the counter V is incremented, and then the group of statements between FOR and NEXT is executed again only if V is less than or equal to value in E.
Otherwise, if V is greater than E, the execution jumps to the statement after NEXT.
SYNTAX:
NEXT V
USE ERROR EXAMPLE
dim i
for i=1 to 10
print i
next i
NEXT
NEXT V
SEE ALSO
FOR
TO
STEP