mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
33 lines
730 B
Text
33 lines
730 B
Text
{{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 numbers|line label]].
|
|
|
|
|
|
{{PageSyntax}}
|
|
: [[_CONTINUE]]
|
|
|
|
|
|
{{PageAvailability}}
|
|
* Build 20170628/55 and up.
|
|
|
|
|
|
{{PageExamples}}
|
|
''Example:''
|
|
{{CodeStart}}
|
|
{{Cl|FOR}} i = 1 {{Cl|TO}} 10
|
|
{{Cl|IF}} i = 5 {{Cl|THEN}} {{Cl|_CONTINUE}}
|
|
{{Cl|PRINT}} i;
|
|
{{Cl|NEXT}}
|
|
{{CodeEnd}}
|
|
{{OutputStart}}
|
|
1 2 3 4 6 7 8 9 10
|
|
{{OutputEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[DO...LOOP]]
|
|
* [[WHILE...WEND]]
|
|
* [[FOR...NEXT]]
|
|
* [[GOTO]]
|
|
|
|
{{PageNavigation}}
|