EXIT FOR: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The '''EXIT FOR''' statement allows a condition other than the counter value to exit a FOR...NEXT loop. {{PageSyntax}} :: EXIT FOR * Used with a conditional statement to exit a FOR counter loop early. ''See also:'' * FOR...NEXT * EXIT DO, IF...THEN * _CONTINUE {{PageNavigation}}")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The '''EXIT FOR''' statement allows a condition other than the counter value to exit a [[FOR...NEXT]] loop.
The '''EXIT FOR''' statement allows a condition other than the counter value to exit a [[FOR...NEXT]] loop.




{{PageSyntax}}
{{PageSyntax}}
:: EXIT [[FOR...NEXT|FOR]]  
: EXIT [[FOR...NEXT|FOR]]




* Used with a conditional statement to exit a FOR counter loop early.
{{PageDescription}}
* Mostly used with a conditional statement to exit a FOR counter loop early.




''See also:''
{{PageSeeAlso}}
* [[FOR...NEXT]]
* [[FOR...NEXT]]
* [[EXIT DO]], [[IF...THEN]]
* [[EXIT DO]], [[IF...THEN]]

Latest revision as of 00:33, 29 January 2023

The EXIT FOR statement allows a condition other than the counter value to exit a FOR...NEXT loop.


Syntax

EXIT FOR


Description

  • Mostly used with a conditional statement to exit a FOR counter loop early.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link