What's wrong? Controlling void loops with integers.

I thought it wouldn't have to directly equal anything since I was defining it as false or true after the action was done within the void loop.