en:return [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:return

## Return (Statement)

### Format

In the context of a gosub and within a Subroutine:

return

In the context of a Function:

return numeric_expr
return string_expr

### Description

The return statement is used with the GOSUB statement to return control to the next statement, within a SUBROUTINE to return control from the subroutine, or with a FUNCTION to return a value to the calling code.

### See Also

Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, Function, Global, Goto, Gosub, If Then, Pause, Ref, Rem, Return, Subroutine, While / End While

### History

0.9.9.1 | Added to subroutine a function

en/return.txt · Last modified: 2014/02/08 22:50 by admin