Using return

From Catglobe Wiki
Revision as of 10:08, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Using return

The return statement causes a script to return. It can also be used to return a value.

The general form of a return statement:

return ;

or return expression;

When a return statement is encountered, the script is terminated, discarding any codes remaining.