@Diya.3rif Need to use reources and set maximum succes number (recomended).
If you work in one thread and use loop(not recomended), you can unset Reuse recources.
@yourfriendkarol Please be more specific on what you are going to achieve. Resources in BAS are very powerful but somewhat limited on the other hand. In total I spent few hours on github trying to understand if using a resource would be good for my this or other problem.