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