Do While Loop using Bots

You can create a simple Do While loop using Bots. I made a public sample of parts of my current app so you can copy.

https://www.appsheet.com/Template/AppDef?appName=PUBLICAssetManagementSystem-6194416&utm_source=shar...

The simple solution was to duplicate my first bot. They both listen for changes that the other creates increasing the counter. The bot doesn't fire once the counter gets to the Counter < Qty statement. Using this method I can create a Do While loop pretty rapidly. The key is to select Trigger other bots & Wait for execution to complete under the Bot Options section. This forces the bot to constantly trigger the other bot. The Wait for execution is essential so that the other bot only increments the counter after the first bot is finished.

3 1 293
1 REPLY 1

Thank you @noahbeach82 for this tip. May I ask why you want to use a loop and which point the loop will stop?

Top Labels in this Space