EXIT_SUB

EXIT_SUB

QUITS A SUBROUTINE WITHOUT EXECUTING END_SUB

  • Type: Command
  • Parameter: 0
  • Group: Structures

ACTION

The command EXIT_SUB quits a subroutine whithout executing END_SUB

SYNTAX: EXIT_SUB

USE

  • The command EXIT_SUB is used to quit a subroutine without executing END_SUB.

ERROR

  • None.

EXAMPLE

dim i%

for i%=1 to 10

to_printer(i%)

next i%

end

sub to_printer(j%)

rem exit if j% is 5 or 6 or 7

if (j%=5) or (j%=6) or (j%=7) then exit_sub

print j%

end_sub

SEE ALSO

SUB

END_SUB