CONTINUE: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_CONTINUE}} The _CONTINUE statement is used in a DO...LOOP, WHILE...WEND or FOR...NEXT block to skip the remaining lines of code in a block (without exiting it) and start the next iteration. It works as a shortcut to a GOTO, but without the need for a line label. {{PageSyntax}} : _CONTINUE ==Availability== * Build 20170628/55 up. {{PageExamples}} ''Example:'' {{CodeStart}} {{Cl|FOR}} i = 1 {{Cl|TO}} 10 {...") |
No edit summary |
||
Line 8: | Line 8: | ||
{{PageAvailability}} | |||
* | * '''QB64 1.2 and up''' (QB64 Team) | ||
* '''QBPE 0.5 and up''' (QB64 Phoenix Edition) | |||
Revision as of 23:13, 29 April 2022
The _CONTINUE statement is used in a DO...LOOP, WHILE...WEND or FOR...NEXT block to skip the remaining lines of code in a block (without exiting it) and start the next iteration. It works as a shortcut to a GOTO, but without the need for a line label.
Syntax
Availability
- QB64 1.2 and up (QB64 Team)
- QBPE 0.5 and up (QB64 Phoenix Edition)
Examples
Example:
FOR i = 1 TO 10 IF i = 5 THEN _CONTINUE PRINT i; NEXT |
1 2 3 4 6 7 8 9 10 |