mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-19 01:34:58 +00:00
aeb9c0668b
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
37 lines
832 B
Text
37 lines
832 B
Text
{{QBDLDATE:05-20-2022}}
|
|
{{QBDLTIME:23:07:16}}
|
|
{{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}}
|
|
* '''QB64 1.2 and up''' (QB64 Team)
|
|
* '''QBPE 0.5 and up''' (QB64 Phoenix Edition)
|
|
|
|
|
|
{{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}}
|
|
|