Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

Lua for loop

for <init>,<max/min value>, <increment> [default is 1]
do
   statements
end

-- Example
for i=1, 5, 1
do
   print(i)
end

--Output
1
2
3
4
5
Source by www.lua.org #
 
PREVIOUS NEXT
Tagged: #Lua #loop
ADD COMMENT
Topic
Name
4+3 =