Difference between revisions of "Command:Return"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
== Description ==
 
== Description ==
 
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.
  
 
== Examples ==
 
== Examples ==

Revision as of 22:44, 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 values are returned with the Return command, they are stored in the TLO:Return variable.

Examples

See Also