RETURN

BASin

RETURN

Statement/Command

RETURN is used to terminate a subroutine and return the computer to the main program or a previous subroutine.

How to use RETURN

RETURN is normally used to form a statement in a program. It is used alone at the end of a subroutine, for example

1080 RETURN

On execution, the program branches to the statement following the last GO SUB executed.

See GO SUB for further details.

Format

  • RETURN

See also

Chapter 5.