> For the complete documentation index, see [llms.txt](https://docs.graphlinq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlinq.io/dev-tooling/blocks/array/each-element-in-array.md).

# Each Element In Array

The "Each Element In Array" block in GraphLinq IDE iterates over each element in an array, providing a way to perform operations on individual array elements.

### Block Description

This block, under the Array category, is designed for element-wise processing within an array.

### Input Parameters

* Array (List\<object>): The array to be iterated over.

### Output Parameters

* Each (Node): Represents the node executed for each array element.
* Item (object): The current element being processed in the array.

### Example Use Case

In a customer feedback analysis graph, the "Each Element In Array" block can be used to iterate over each piece of feedback, processing it for sentiment analysis.

### Example

In this example we first create a new array and add two elements. (Item1 and Item2). Next we loop through the array and perform a print on each item. When complete, the graph prints DONE and stops the graph.

<figure><img src="/files/Cj68HecYv8nntFBKdB2Y" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.graphlinq.io/dev-tooling/blocks/array/each-element-in-array.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.
