> 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>
