lua-users home
lua-l archive

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


On Mar 29, 2006, at 11:10 AM, Alexander Gladysh wrote:

         return A[k] or B[k] or C[k] or error("Not found" .. k)


How about:

return A[k]~=nil and A[k] or B[k]~=nil and B[k] or C[k]~=nil and C[k] or error( "Not Found" .. k )