NEXT

From QB64 Wiki
Revision as of 20:08, 30 August 2009 by imported>Clippy (Created page with ''''NEXT''' is used in a FOR counter loop to progress through the loop. * NEXT is required in a FOR loop. A variable name is not. * NEXT does not stop the FOR loop count. T…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

NEXT is used in a FOR counter loop to progress through the loop.


  • NEXT is required in a FOR loop. A variable name is not.
  • NEXT does not stop the FOR loop count. The value of the FOR loop variable will be different from the loop count.


Example: Using a simple counter to 10.


FOR i = 1 TO 10

PRINT i;

NEXT i

PRINT

PRINT i