How can I convert a string to an integer in Lua?
I have a string like this:
a = \"10\"
I would like it to be converted to 10, the n
here is what you should put
local stringnumber = "10" local a = tonumber(stringnumber) print(a + 10) output: 20