I've gone through a problem using the for each loop built in the array. I find the lack of a "stop loop" action to exit the loop in certain condition. Maybe it could be added in futur version ?
This is the link to the topic, and a temporary solution suggested by linkman2004.
Thanks to everyone.