Skip elements in a foreach loop?

  • Thread starter Thread starter AdamM
  • Start date Start date
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
 
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
 
Back
Top