Posted 20 October 2012 - 03:15 PM
Just found out that we don't have a "goto label" option because CC uses lua 5.1 right?….. bummer
In this case could you guys recommend a way to call a redo for an IF statement from inside the IF itself! I can't use break because I'm inside 3 FORs and if I'm not mistaken that kills all the FORs
The code is something like this
My immediate solution would be to use use a WHILE loop similar to this:
This however would complicate the rest of my code.
In this case could you guys recommend a way to call a redo for an IF statement from inside the IF itself! I can't use break because I'm inside 3 FORs and if I'm not mistaken that kills all the FORs
The code is something like this
for do
for do
for do
::label::
if condition then
......
goto label
else
.....
end
end
end
end
My immediate solution would be to use use a WHILE loop similar to this:
for do
for do
for do
local aux = true
while condition and aux do
......
......
-- eventually
aux = false
end
......
......
end
end
end
This however would complicate the rest of my code.