was trying to pull the last digit from a number and tried with:
string.sub(time_in_seconds, i)
and while this works in extracting the last digit i cannot use it in a IF statement with a number since it is a string.
after looking over the documentation i could not find the proper code to do the same with a number or to change the string into a number.
do we have a solution for this in lua that i have overlooked?
i think i have
let's try tonumber()
apparantly this was a rhetorical question.