while 1 if 脱出条件 then goto @out if 終了条件 then end なんかの処理 wend @out 次の処理 よく考えたらsmilebasicで無限ループは、これしか使ったことがない