Gosub

From Wiki
Revision as of 23:08, 13 August 2005 by Snicker7 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gosub

Flow Control

Synopsis

gosub {sub name} [param1, param2, ...]

Description

The gosub command transfers the execution to a sub with the name given by the parameter.

Parameters can be added after the sub name. They will be transfered in the variables %1, %2, and so on. The variable %0 holds the number of parameters passed.

Example

gosub s7IsGreaterThan CEO RK
; %1 = CEO
; %2 = RK
; %0 = 2

See Also

sub return

Main_Page Documentation

Flow Control