BASIC Extensions > A-Shell Extensions

RETURN (<expression>)

This form of the RETURN statement must be used within an SBX routine to return to the calling program with the specified expression as the value of the function called by XFUNC. If the SBX was called via XCALL rather than XFUNC, then this statement will be treated as equivalent to an END (i.e. end the subroutine and return to the caller). See XFUNC for more information on implementing external functions.