Difference between revisions of "CONTINUE"

From QB64 Wiki
Jump to navigation Jump to search
imported>SMcNeill
(Created page with '{{DISPLAYTITLE:_CONTINUE}} The _CONTINUE statement is used in a DO/LOOP, WHILE/WEND, FOR/LOOP block to skip the remaining lines of code in a block (without exiting it) and start…')
 
m (Nomalise Availability section text)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:_CONTINUE}}
 
{{DISPLAYTITLE:_CONTINUE}}
  
The _CONTINUE statement is used in a DO/LOOP, WHILE/WEND, FOR/LOOP 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.  
+
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 numbers|line label]].  
  
  
 
{{PageSyntax}}
 
{{PageSyntax}}
: _CONTINUE
+
: [[_CONTINUE]]
  
  
''Availability:''
+
{{PageAvailability}}
 
+
* Build 20170628/55 and up.
* Available from build 20170628/55 onwards.
 
  
  
 +
{{PageExamples}}
 
''Example:''
 
''Example:''
 
{{CodeStart}}
 
{{CodeStart}}

Latest revision as of 03:15, 8 March 2021


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

_CONTINUE


Availability

  • Build 20170628/55 and up.


Examples

Example:

FOR i = 1 TO 10 IF i = 5 THEN _CONTINUE PRINT i; NEXT

1 2 3 4 6 7 8 9 10


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page