Site hosted by Angelfire.com: Build your free website today!
NAME
  EXIT Statement

SYNOPSIS
  EXIT {DEF | DO | FOR | FUNCTION | SUB}
      o DEF         Exits a DEF FN function.
      o DO          Exits a DO loop.
      o FOR         Exits a FOR loop.
      o FUNCTION    Exits a FUNCTION procedure.
      o SUB         Exits a SUB procedure.

DESCRIPTION
  Exits a DO or FOR loop, a FUNCTION or SUB procedure, or a DEF FN function.

  Example:
      i% = 0
      DO
          i% = i% + 1
          IF i% = 500 THEN EXIT DO
      LOOP
      PRINT "EXIT at"; i%

SEE ALSO
  DEF FN DO...LOOP FOR...NEXT FUNCTION SUB