Simple question, how do I turn a string value into a int value. In Python, the programming languages I'm most comfortable with, you simple write:
strvalue = "3"
toadd = 7
strvalue = int(strvalue)
total = strvalue + toadd
But how can i do this in Lua
int = tonumber(string)