Help files

Simple Loops

WinAutomation implements simple loops with the “Loop” action. Basically, a simple loop will repeat the block of actions that it contains, for a set number of times. Note that a specific variable can be created to keep track of the current iteration’s number.


A simple loop is ideal to use in 2 cases:

1. If you know the exact number of times that action(s) should be repeated

2. If the %LoopIndex% variable must be used somewhere inside the loop (“LoopIndex” is the default variable’s name that WinAutomation uses to store the current iteration’s number).


You can see an example of a simple loop usage in “Advanced” category of WinAutomation’s examples: “8 - Rotate Excel Data”