lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, 14 Jan 2010 11:22:17 -0200
Romulo <romuloab@gmail.com> wrote:

> The only problem is when you _do_ want to break the outer loop.

I suppose you're looking for something more 'poetic' than:

for i = 1, 10 do
    local breakfor = false
    repeat
        ...
    until true
    if (breakfor == true) then
        break
    end
end