Q:

iPhone Game Having a statement checked every 50 points

I've run into a little hurdle and wanted to see if somebody could help me!
I want to write an algorithm for an if statement that says:
if (for every 50 points)
{
//do something
}

I thought += 50 would do the trick, but nope.
Any ideas?
Thanks!

A:

if ((points % 50) == 0)
{
  // do something
}

Where points is an int variable containing your points. The if statement will be enterred for points 0, 50, 100, 150.. and so on

