While/ja
From Second Life Wiki
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);

