EXIT SUB
/FUNCTION 
/DO  
/FOR
/WHILE
control flow StatementWindows/Unix

Allows you to break out of a SUB or FUNCTION before the END SUB or END FUNCTION  
or exit early out of a loop. 

Syntax: EXIT {SUB} {FUNCTION} {DO} {FOR} {WHILE}


Details:
In the original RapidQ libraries EXIT SUB and EXIT FUNCTION caused a memory leak. This problem was fixed in the updated "Snakedile" libraries. If you don't have the fixed libraries, It is very easy to avoid EXIT SUB and EXIT FUNCTION:
SUB test
  IF b < 1 THEN GOTO EXIT_SUB
  FOR a = 1 TO b
    c = c + 1
  NEXT a
EXIT_SUB:
END SUB
** note the sub is exited early the loop will not run if b < 1