Hello,
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.
https://www.scirra.com/forum/viewtopic.php?f=147&t=125376
Thanks to everyone.
Nabu