Script RETURN Statement

RETURN

The RETURN statement is used to return to the point from which a subroutine was invoked by a GOSUB statement. For example:

GOSUB @SUBROUTINE
ECHO "processing will return to this point."
EXIT

@SUBROUTINE
ECHO "After printing this line..."
RETURN

displays the following:

After printing this line...
processing will return to this point.

Copyright © 2017 American Chemical Society. All Rights Reserved.