Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua check if string is number

local function isInteger(str)

  return not (str == "" or str:find("%D"))  -- str:match("%D") also works

end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lua #check #string #number
ADD COMMENT
Topic
Name
4+3 =