# RETURN

Related Commands

GOSUB

Syntax:

Then: RETURN

Version Ref: 3.x

Description:

RETURN ends a GOSUB routine, and returns the processing to the first statement following the current GOSUB statement. RETURN must be the last command on any "Then" line, since processing following it on that line will be ignored. RETURN must not be encountered without a previous GOSUB.

Examples:

@wlf6 Then: GOSUB "addup";end

If: 'any number of lines containing

Then: 'other code

addup If: 'now lets total a few fields

Then: tt(8,.2)=5+6+7+8+9+10

If: 'now we will show the total and return where we left off

Then: show "@Total is $" { tt; RETURN

The subroutine "addup" can be called by @wlf6,7,8,9 and 10 rather than totaling these fields 5 different times on the table.