In my application I chose one integer type variable name counter.
int counter;
which is used to increase different values. but in some condition I want to stop the increasing value
if (counter > totalImageCount) {
NSLog(@"counter:%d",counter);
counter = counter - 8;
}
and I don't have any idea how to stop the value of this counter. In above if condition I want to add one more condition like if the value of the counter = 100 at that time I want to stop the counter but I don't know how to stop the counter. plz tell me how can I stop