FutureBasic Logo

<<    Index    >> FutureBasic 5

return   statement

return ["label"]

You should include at least one return statement in every subroutine that is called by a gosub statement. return causes the subroutine to "exit"; that is, it causes execution to continue at the statement following the gosub that called the subroutine.
You may also return to a specific location using return "label". This pops the return address from the stack, then jumps to the requested address.

See Also: