I'm building a program in Lua.
In my code, I have to translate count++
from Java to Lua. How would I go about this?
I assume it's count = count + 1
, but is there another way to go about this method?
Also, when you write (count % 20 == 0)
, is the right translation in Lua, (math.mod(count,20) == 0)
?
I have tried both the above lines, but one of the two seem to be not working.