While/ja
< While
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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);
関連項目