This shows you the differences between two versions of the page.
en:return [2016/08/12 12:56] admin |
en:return [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Return (Statement) ===== | ||
- | ==== Format ==== | ||
- | |||
- | In the context of a [[gosub|gosub]] and within a [[subroutine|Subroutine]]: | ||
- | |||
- | **return** | ||
- | |||
- | In the context of a [[function|Function]]: | ||
- | |||
- | **return** [[numericexpressions|numeric_expression]]\\ | ||
- | **return** [[stringexpressions|string_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | The return statement is used with the [[gosub|GOSUB]] statement to return control to the next statement, within a [[subroutine|SUBROUTINE]] to return control from the subroutine, or with a [[function|FUNCTION]] to return a value to the calling code. | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.9.1|Added to subroutine a function| |