Difference between revisions of "While/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{Multi-lang}} {{LSL_Conditional/ja |statement=while |statement_header |statement_desc=どちらの文も空文でもよい. |statement_end=loop |statement_end_desc=Can be either a single ...)
 
m
Line 4: Line 4:
|statement_header
|statement_header
|statement_desc=どちらの文も空文でもよい.
|statement_desc=どちらの文も空文でもよい.
|statement_end=loop
|statement_end=ループ
|statement_end_desc=Can be either a single statement, a block statement, or a null statement.
|statement_end_desc=単文でも複合文でも空文でもよい.
|p1_name=condition|p1_desc=If this executes as true then '''loop''' is executed.
|p1_name=条件式|p1_desc=これが実行され真であれば '''ループ''' が実行される.
|constants
|constants
|spec
|spec
|caveats
|caveats
|examples=<pre>//単文
|=<pre>//単文
integer a = 0;
integer a = 0;
integer b = 10;
integer b = 10;
Line 36: Line 36:
|also_articles
|also_articles
|also_footer
|also_footer
|notes=A {{LSLG|do-while}} loop is faster than a while loop or a {{LSLG|for/ja|for}} loop.
|=A {{LSLG|do-while}} loop is faster than a while loop or a {{LSLG|for/ja|for}} loop.
|mode
|mode
|deprecated
|deprecated

Revision as of 20:02, 12 December 2007

while( 条件式ループ

•  条件式 これが実行され真であれば ループ が実行される.
•  ループ 単文でも複合文でも空文でもよい.


どちらの文も空文でもよい.

詳細

条件の種類
条件
integer 0ではない場合は真。
float 0ではない場合は真。
string 文字列の長さが0ではない場合は真。
key keyが有効でNULL_KEYではない場合のみ真。
vector vectorがZERO_VECTORではない場合は真。
rotation rotationがZERO_ROTATIONではない場合は真。
list listの長さが0ではない場合は真。正しい動作は、Monoでコンパイルされたスクリプトのみで見られ、LSOでコンパイルされたスクリプトは誤って false になります。BUG-230728