Posted by member 212670 on 2007-12-15 09:45:30 link

For modulo, if you're using one of the experimental LS builds, you can do things like...

a 12
b 5
c "$a mod b$"

If c < 1
d 5
Else
d 10
EndIf


In the above example, !alert $c$ will return 2, and !alert $d$ will return 10.

Or use mod directly...
If "$a mod b$" < 1
d 5
Else
d 10
EndIf


See the math.txt included in the experimental LS build's zip.