NEXT loop whose conditional expression is always true. When doing this you must take care to provide a way out of the loop. You can do this with an EXIT statement or by trapping a run-time error. See Chapter 16 for more information about trapping run-time errors. NEXT loop executes until a given condition is true.
NEXT loop executes repeatedly for as long as the conditional expression is false.
You must explicitly change a variable in the conditional expression or the loop will execute indefinitely. NEXT loop, as shown in the following example. When a loop block is entirely contained in another loop block, it is called a nested loop. NEXT loops to fill the array elements with sales information. The inner loop executes 16 times for each iteration of the outer loop.