Return
From Second Life Wiki
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
- The correct title of this article is return. The initial letter is shown capitalized due to technical restrictions.
return value;
Used to return execution to the previous scope along with a value. Functions
Events
| |||||
return;Used to prematurely return execution to the previous scope before reaching the end of the function/event. You do not need to use this at the end of an event or function, as it is assumed by the compiler. Functions
Events
| |||||
Examplesinteger Goodbye() { llOwnerSay("Goodbye"); return 0; } Hello() { llOwnerSay("Hello"); return; } | |||||

