# For Each

Loop through a list of values and for each value perform a certain action. It is designed to process the multiple options from a Checkbox List.

All other actions can be nested in a ForEach loop and will behave according to standard JavaScript. Actions like ExecuteSQLCommand, CallWebService and *Decision* are the more logical choices.

The output from the ForEach Loop (ForEach1.LoopValue) is the input for the nested actions.

***

{% embed url="<https://www.youtube.com/embed/08MMDocs7Ak?autoplay=1&rel=0&vq=1080>" %}
*Add a ForEach action*
{% endembed %}

***

### Properties

1. **List**

   The list of values to loop through and perform the nested actions on. Accepts any list of objects.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/actions/foreach.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
