lua-users home
lua-l archive

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


function incr(n)
  if type(n) == "string"
    n = tostring(tonumber(n) + 1;
  elseif type(n) == "number"
    n = n + 1;
  else
    print type(n);
  end
end