Generally, my goal is to simulate the continue statement, which doesn't exist in Lua. I have read some thread about using goto to do this. I tried:
for i=0, 9, 1 do
if i<5 then goto skip end
print(i)
::skip::
end
It raised "lua: test.lua:2: '=' expected near 'skip'"
Is there any workaround to this? Thanks in advance