while ... wend
while式が真である間ブロックのコマンドを実行する。
書式:
while
commands
{exit while}
wend
while宣言はループされるブロックコマンドのスタート位置を規定する。
wend宣言はブロックの終了位置を示す。
またend while も同様に使用可。
例:
setautoback(50)
i=0
while inkey <>
k_esc ------------------------ will loop until esc key is pressed
i=i+1
prints(i)
wend
----------------------------------------------- you can use indifferently wend
or end while
参照: exit
while