Declaring multiple variables as local

Is there another way of declaring multiple variables as local, instead of writing for example:

function f()
    local a
    local b
    local c
    local d
    while true
        # do stuff with a,b,c,d
        if some_condition
            break
        end
    end
    return a,b,c,d
end
local a, b, c, d

?

3 Likes

yeah that works :sweat_smile: