Difference between revisions of "EXIT"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Force exit from a DO WHILE loop | Force exit from a DO WHILE loop | ||
− | |||
==Syntax== | ==Syntax== | ||
EXIT | EXIT | ||
− | |||
==See Also== | ==See Also== | ||
[[DO WHILE]], [[FOR]], [[LOOP]], [[SCAN]] | [[DO WHILE]], [[FOR]], [[LOOP]], [[SCAN]] | ||
− | |||
==Description== | ==Description== | ||
The EXIT command causes control to drop out of a DO WHILE or FOR...NEXT loop. | The EXIT command causes control to drop out of a DO WHILE or FOR...NEXT loop. | ||
− | |||
==Example== | ==Example== | ||
Line 28: | Line 24: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Applications Commands]] | [[Category:Applications Commands]] |
Revision as of 11:16, 10 February 2012
Contents
Purpose
Force exit from a DO WHILE loop
Syntax
EXIT
See Also
Description
The EXIT command causes control to drop out of a DO WHILE or FOR...NEXT loop.
Example
use patrons index events seek "BALLET" do while not eof() if event<>"BALLET" exit endif display name, event, seats, seats * price off skip enddo