Skip to content

009 WHILE loops

Jeroen Broks edited this page Jan 7, 2023 · 1 revision

Basically the 'while' loops work the same is in pure Lua with the only difference that you do not use the keyword 'do'.

init
   int a = 1
   while a<=10
         print(a)
         a++
   end
end

I don't think that I need to explain the working of WHILE any further to an experienced coder.

Clone this wiki locally