x = io.read() if x ~= 0 then print(x .. " diferente de 0") end if x == "1" then print(x .. " igual 1") end if tonumber(x) == 1 then print(x .. " igual 1") end --https://pt.stackoverflow.com/q/475123/101