Posted 06 July 2012 - 11:31 PM
Can you detect if an input such as
x = io.read()
is a number or a word
x = io.read()
is a number or a word
local input = read() -- get the input, doesn't really matter how
if tonumber(input) ~= nil then
-- the input is a number
else
-- the input is a word
end