### Looping with Repeat Actions

To execute portions of your Workflow multiple times, surround some Actions in Repeat and End Repeat Actions. The Repeat Action will continue to loop while its specified condition is true.

### While and do/while loops with Repeat Actions

When certain specifiers are selected in a Repeat Action, an option for check condition at beginning/end of loop. becomes available. The default is at beginning of loop. This causes the Repeat Action to perform a while loop. Selecing check condition at end of loop causes the Repeat Action to perform a do/while loop instead.

### For/in loops with Repeat Actions

For/in looping logic in Workflows is possible with the Repeat With Action paired with the End Repeat Action. In the Repeat With Action, specify a variable name in the variable named text field and some collection of items (like HTML Elements on the current webpage or a JavaScript `Array` of values) using the in specifier. The Repeat With Action will iterate over the collection while assigning the item at the current index to a variable with the variable name specified.

### JavaScript features in Repeat Actions

While a Repeat or Repeat With Action is executing, the JavaScript `window.fake` object contains a `loop` property which provides information about the current loop iteration. `window.fake.loop.index` contains the loop's current index, and `window.fake.loop.length` contains the loop's total length.

### Exiting/Skipping Loops

Breaking out of a Repeat loop early can be done with the Exit Action and skipping to the beginning of the next Repeat loop is accomplished with the Skip action. Note that Repeat loops may be nested, and a Exit Action placed outside of a Repeat loop will halt execution of the entire Workflow.