Skip elements in a foreach loop?

A

AdamM

How can I skip an element in a foreach loop? Break seems to jump completely
out of the foreach. I just want to move along to the next element based on
some condition.

Thanks in advance!

Adam
 
M

Michael C

AdamM said:
How can I skip an element in a foreach loop? Break seems to jump
completely out of the foreach. I just want to move along to the next
element based on some condition.
continue


Thanks in advance!

Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top