And once you realize, you can not live without it.
Code: Select all
Y % X == 0The most common example would be to check if a number is even:
Code: Select all
Y % 2 == 0But you can also do some other usefull stuff like "every 20th Turn":
Code: Select all
ROUND % 20 == 0I tried to approxmiate it with simple division, but
Code: Select all
3 / 2 == 1I will have to use a large list of or checks like:
Code: Select all
ROUND == 20 | ROUND == 40 | etc.