BASICHELP.HLB  —  EXIT
  The EXIT statement lets you exit unconditionally from a  SUB  or  FUNCTION
  subprogram, a multi-line DEF, or a statement block.

  Example

  SUB SUBA
  INPUT 'More to do';Answer$
  SUB IF Answer$ = 'NO'
  Loop_1:
      WHILE 1% = 1%
        INPUT 'Amount';Amount
        EXIT Loop_1 IF Amount = 0
      NEXT
  END SUB

1  –  Syntax

      EXIT block

               { DEF [exp]         }
        block: { FUNCTION [exp]    }
               { SUB               }
               { HANDLER           }
               { PROGRAM [int-exp] }
               { label             }
Close Help