Difference between revisions of "Command:Return"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 6: Line 6:
 
Returns from the current function immediately, continuing execution after the "Call" to this function.  If the main function ends, the script ends.
 
Returns from the current function immediately, continuing execution after the "Call" to this function.  If the main function ends, the script ends.
  
If any values are returned with the Return command, they are stored in the [[TLO:Return]] variable.
+
If any text is returned with the Return command, it can be retrieved by the caller via the [[TLO:Return|Return Top-Level Object]].
  
 
== Examples ==
 
== Examples ==
Line 12: Line 12:
 
== See Also ==
 
== See Also ==
 
*[[LavishScript:Commands|Commands]]
 
*[[LavishScript:Commands|Commands]]
 +
*[[TLO:Return|Return Top-Level Object]]
 
{{Command-Stub}}
 
{{Command-Stub}}
 
[[Category:LavishScript]]  
 
[[Category:LavishScript]]  
 
[[Category:LavishScript Commands]]
 
[[Category:LavishScript Commands]]

Latest revision as of 22:50, 1 February 2006

Syntax

Command Difficulty Rating
Return
Usage Beginner
Level of Understanding Intermediate
Computer Savvy Beginner
Logic Intermediate

Return [text]

Description

Returns from the current function immediately, continuing execution after the "Call" to this function. If the main function ends, the script ends.

If any text is returned with the Return command, it can be retrieved by the caller via the Return Top-Level Object.

Examples

See Also