While/ja
< While
Jump to navigation
Jump to search
Revision as of 18:51, 12 December 2007 by Coffee Mills (talk | contribs) (New page: {{Multi-lang}} {{LSL_Conditional/ja |statement=while |statement_header |statement_desc=どちらの文も空文でもよい. |statement_end=loop |statement_end_desc=Can be either a single ...)
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
while( condition ) loop
• | condition | – | If this executes as true then loop is executed. | |
• | loop | – | Can be either a single statement, a block statement, or a null statement. |
どちらの文も空文でもよい.
詳細
例
//単文 integer a = 0; integer b = 10; while(a < b) llOwnerSay((string)(a++));
//ブロック integer a = 0; integer b = 10; while(a < b) { llOwnerSay((string)a); ++a; }
//空文 integer a = 0; integer b = 10; while(a++ < b);