How do I call this statement where I had to have 3 intvalue of 2 in order to get the NSLOG “MOO”? Right now as I draw a initvalue of 2 once it will give me NSLog moo ,but I want it where I have to draw it 3 times to get NSLog “MOO”. Any tips?
if ([[dictionary valueForKey:[cowssShuffled objectAtIndex:currentCow]] intValue] == 2)
{
NSLog(@"MOO");
}
First initialise
then