Gladox114 Posted March 23, 2018 Posted March 23, 2018 I know that "not nil" is wrong but how to test if the input is a nummber and do something when input is a nummber. read = io.read() if string.match(read, "(%d+)") == not nil then -- do something end Quote
I know that "not nil" is wrong but how to test if the input is a nummber and do something when input is a nummber.