# Map

The 'map' logic block is designed for working with arrays. It allows you to iterate over elements in the array and apply the same operation to each element, streamlining data manipulation and processing.

## Understanding the 'Map' Iterator:

The 'Map' iterator in eMOBIQ is like a tour guide that takes you through each element in an array, applying the same operation to all elements. It simplifies data processing, making it easier to perform repetitive operations uniformly.

## Key Features of 'Map':

* It takes an array as input and processes each element using the specified 'callback' logic.

## Implementing Maps in Visual Logic:

1. Drag and drop the 'Map' logic block onto the visual logic canvas.
2. Pass the array you want to process into the 'values' parameter of the 'Map' logic block.
3. Add the logic blocks inside the 'callback' to apply the desired operation to each element.


---

# 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.emobiq.com/emobiq-client/006-actions-and-visual-logic/logic-flow-sequence-and-control/loops/map.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.
