Beginner Question - For Each

crjunk

Member
I have a "For Each" statement in my code that I'm running. Once a certain condition has been met inside the "For Each" statement, I would like to kill the "For Each" statement. What syntax is used to stop a "For Each" statement?

Thanks,
CR Junk
 

crjunk

Member
I figured out my problem after re-inserting the LEAVE event. I had tried using the LEAVE event earlier, but it didn't seem to have any effect. It seems that some code in my my trigger event was incorrect.

Thanks,
CR Junk
 
[Cross-post]

You just leave the FOR EACH block.

Look at LEAVE statement in Help.

You don't need to specify a label, but it is good practice.
 
Top