AmphibianOblivion just to explain this a little more in case it's a new topic for you, the operator (%) that dop2000 is using is called the remainder operator, sometimes called the modulo operator. It divides the two numbers and returns the remainder of that division.
Any even integer divided by two will have zero remainder. Any odd integer divided by 1 will have a remainder of 1.