start . me .
Directory path . lua , progress-to-build .

File : 02.lua

-- title : goto to build while-do
-- topics: if, goto

--****************************
n=1
while n<=3 do
    print(n, "from 'while' code-section")
    n = n + 1
end
--****************************

n = 1
:: begin_loop ::
if n>3 then goto exit_loop end -- check

  print(n, "from 'if-goto' code-section") -- display
  n = (n + 1) -- increment

goto begin_loop -- repeat
:: exit_loop ::

-- additionally: for-range
for n=1,3 do
    print(n, "from 'for-range' code-section")
end