Lua can handle for loops in two ways,
for i = 1,2,3,4 do
print(i)
end
and
for i=1,20 do
print(i)
end
What would happen if I was to use
for i=1,30,3 do
print(i)
end
Should it consider these are three values of 1, 30 and 3 or think of it as a loop from 1 to 30 with stepping of 3?
or should it be for i in 1,2,3,4,5 do
??
cheers,
? [import]uid: 3826 topic_id: 13458 reply_id: 313458[/import]