Difference between revisions of "Jump"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (changed "@target;" to be targetable by redirects (I think)) |
Void Singer (talk | contribs) m (Undo revision 341182 by Void Singer (Talk)) |
||
Line 9: | Line 9: | ||
}}{{#vardefine:constants_nb| | }}{{#vardefine:constants_nb| | ||
<div id="box"> | <div id="box"> | ||
<h2>@{{LSL Param|label_target|target}};</h2> | |||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{{!}} | {{{!}} |
Revision as of 13:51, 30 April 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
- The correct title of this article is jump. The initial letter is shown capitalized due to technical restrictions.
jump target;
jump target;• label | target | – | Name of a label inside the same leg of the scope hierarchy tree |
@target;
• label | target | – | A label that can be jumped to if the jump is in the same scope or child scope. |
Caveats
- A target does not work with multiple jumps in all cases.
- For multiple jumps you may need to use additional targets.
- This is a long standing LSL bug.
- For multiple jumps you may need to use additional targets.
Examples
<lsl>integer a = 5; jump over; @in; a = 6; @over; llOwnerSay((string)a); if(a < 6)
jump in;
//script will say 5 and then 6</lsl>