EXIT

From Lianjapedia
Revision as of 13:24, 4 February 2013 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Purpose

Force exit from a DO WHILE loop

Syntax

EXIT

See Also

DO WHILE, FOR, LOOP, SCAN

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