I don't think that there are a Lua equivalent to the next statement of Ruby, but you can easily reproduce this with a variable.
For example :
becomes :
For example :
Code (ruby) Select
for i in 0...@xy_pos.size
if (condition)
next
end
# rest of the code
end
becomes :
Code (lua) Select
for i = 1, #items do
local to_next = false
if (condition) then
to_next = true
end
if not to_next then
-- rest of the code
end
end