Difference between revisions of "Jump"

From Second Life Wiki
Jump to navigation Jump to search
m
(note: this needs to be updated to a newer template set.)
Line 28: Line 28:
//script will say 5 and then 6</lsl>
//script will say 5 and then 6</lsl>
}}{{#vardefine:notes|
}}{{#vardefine:notes|
}}{{#vardefine:caveats|A target does not work with multiple jumps in all cases.
}}{{#vardefine:caveats|
 
*A target does not work with multiple jumps in all cases.
For multiple jumps you may need to use additional targets.
**For multiple jumps you may need to use additional targets.
 
***This is a long standing LSL bug.
 
''It is currently unknown if this is a technical limitation, oversight or bug.''
}}{{#vardefine:helpers|
}}{{#vardefine:helpers|
}}{{#vardefine:also_header|<h3>Keywords</h3>
}}{{#vardefine:also_header|<h3>Keywords</h3>

Revision as of 18:56, 11 June 2008

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.

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>

See Also

Keywords

•  return
•  state