Difference between revisions of "Jump/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 48: Line 48:
}}{{#vardefine:also_tests|
}}{{#vardefine:also_tests|
}}{{#vardefine:location|
}}{{#vardefine:location|
}}{{LSL Generic/ja}}{{LSLC|Flow Control/ja}}
}}{{LSL Generic/ja}}{{LSLC/ja|Flow Control}}

Revision as of 22:12, 14 April 2010

The correct title of this article is jump/ja. The initial letter is shown capitalized due to technical restrictions.

jump target;

jump target;
• label target ラベル名は階層ツリーで同じスコープ区間の内側です。

@target;

• label target ラベルが同じスコープか子スコープにジャンプできる場合、ジャンプします。

注意点

targetは、全てのジャンプは行いません。

複数に及ぶジャンプのためには、更にtargetを使う必要があるでしょう。


技術的な限界、見落とし、バグの場合、常に無いものとして扱われます。

サンプル

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

参考情報

キーワード

•  return
•  state