1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +00:00
qb64/internal/help/_CONTINUE.txt
2021-04-25 19:40:25 -03:00

34 lines
730 B
Plaintext

{{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}}