Difference between revisions of "While/ja"
< While
Jump to navigation
Jump to search
(cats) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 34: | Line 34: | ||
|also_functions | |also_functions | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles= | ||
{{LSL Tip|[[User:Kireji_Haiku/How_to_deal_with_lists_in_LSL|LSLでリストを繰り返し処理する方法についての紹介]]}} | |||
|also_footer | |also_footer | ||
|notes={{LSLG|do-while}} のループは while ループや {{LSLG|for/ja|for}} | |notes={{LSLG|do-while/ja|do-while}} のループは while ループや {{LSLG|for/ja|for}} ループより LSO においては速いです。 | ||
|mode | |mode | ||
|deprecated | |deprecated |
Latest revision as of 07:52, 26 September 2023
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
while( condition ) loop
• | condition | – | これが実行されてtrueであれば loop が実行されます。 | |
• | loop | – | シングルステートメントでもブロックステートメントでも空のステートメントのいずれも可能です。 |
いずれのステートメントが空でも可能です。
詳細
例
//シングルステートメント 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);
関連項目