RETURN
Action
Return from a subroutine.

Syntax
RETURN

Remarks
Subroutines must be ended with a related RETURN statement.
Interrupt subroutines must also be terminated with the Return statement.

See also
GOSUB


Example


GOSUB Pr 'jump to subroutine
PRINT result 'print result
END 'program ends

Pr: 'start subroutine with label
result = 5 * y 'do something stupid

result = result + 100 'add something to it
RETURN 'return