What's wrong? Controlling void loops with integers.

I thought it wouldn't have to directly equal anything

Yet you're testing it.