Difference between revisions of "Jump"

From Second Life Wiki
Jump to navigation Jump to search
Line 42: Line 42:
}}{{#vardefine:also_tests|
}}{{#vardefine:also_tests|
}}{{#vardefine:location|
}}{{#vardefine:location|
}}{{LSL Generic}}{{LSLC|Flow Control}}
}}{{LSL Generic}}{{LSLC|Flow Control}}{{LSLC|Keywords}}

Revision as of 01:16, 22 April 2007

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.

Examples

integer a = 5;
jump over;
@in;
a = 6;
@over;
llOwnerSay((string)a);
if(a < 6)
    jump in;
//script will say 5 and then 6

See Also

Keywords

•  return
•  state