構文 | repeat ~ until 条件式 の形 | 条件式が真となるまで繰り返す |
-- repeat repeat.lua
while not Keys.newPress.Start do -- 何かキーが押されるまで繰り返す
Controls.read()
startDrawing()
screen.print(SCREEN_UP, 0, 0, "Press START to quit")
i=0
repeat
screen.print(SCREEN_DOWN, 0, 8 * i, i)
i = i + 1
until i > 5
stopDrawing()
end