lua-users home
lua-l archive

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


On Jun 29, 2017 8:02 PM, "Eric Man" <meric.au@gmail.com> wrote:
What about writing your own null checking function?

function isnull(value)
  if value is nullptr: return nil
  if value is nil: return nil
  if not value: return value
  return true
end

I read this and got confused as to whether I was reading the lua-l list or one of the several Python lists that I'm also subscribed to. :P