I want to check, if a number is divisible by another number:
for i = 1, 100 do if i % 2 == 0 then print( i .. \" is divisible.\") end end
Use math.fmod, accroding lua manual math.mod was renamed to math.fmod in lua 5.1.
math.fmod
math.mod