Difference between revisions of "Using return"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Program_Control_Statements]]

+
{{HelpFiles}}
  
 
===Using return===
 
===Using return===

Latest revision as of 08:16, 14 December 2011



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.