As others already noted the standard way is using the continue keyword. 
However, if the conditional inside is scoped high enough, you can also just use 
a guard if () {}
Putting everything inside the if block. 
Then like any guard it's going to do nothing if the condition is false. 

Most Objective-C collection types also have an enumerate objects block based 
method with an index and a stopper for when you want something fast and that 
offers a little more control than for-in and that is a bit more self 
documenting in some ways. 

Sent from my iPhone

> On 2015/05/15, at 1:09, Alex Zavatone <z...@mac.com> wrote:
> 
> I'm sure this will sound like the noobiest question ever, but with Fast 
> Enumeration, if in an if statement within the loop, is there a way to stop 
> loop execution and essentially do a "proceed to the next item in the list 
> please"?
> 
> Interested in something like BASIC's next repeat or something to that effect.
> 
> In my scanning of the Apple docs, I didn't see that.  Does break do that or 
> simply break out of the loop all together?
> 
> For example, if I'm counting from 1 to 10, hit 3, I want the loop to skip to 
> 4 and keep going.
> 
> Thanks much.
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to