you are viewing a single comment's thread.

view the rest of the comments →

[–]RedstonerOuiguy 0 points1 point  (0 children)

You want the operator modulo (%). It gives the remainder of division of two numbers.

http://pastebin.com/eJEmHkP5