Does Lua have OR comparisons?

With “or”.

if condition or not othercondition then
    x = 0
end

As the Lua manual clearly states.

Leave a Comment