Quote:
if required loops have finished it avoids 4 because it's done what it has to, if not then 4 tells VB to loop the variable again.
Is that right?
|
Not exactly, the loop variable name after Next is optional, you can use it to better read when nesting loops. Next is the keyword that ends that loop, same as an If code block ends with "End If".
VB is explicit about this to make it easier to read, C style languages for example just denote code blocks starting with a "{" and ending with a "}". So the the Next keyword just tells compiler that this code block was finished and it should do the next For until end condition.