# Merge Dictionaries

## Overview

![The Merge Dictionaries Node.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-feb686e9b073b46228fa443f74848cbfe8d4d26b%2Fmergedictionariesupdatedimage.png?alt=media)

The **Merge Dictionaries** **Node** merges two or more **Dictionaries**. It receives the **Dictionaries** to merge (`Dictionary 1`, `Dictionary 2`, etc) and outputs the merged **Dictionary** (`New Dictionary`).

In the case that two or more of the **Dictionaries** to be merged have the same *key*, it takes the *value* from the first **Dictionary** (for instance, if `Dictionary 2` and `Dictionary 3` have the same *key* with different *values*, the `New Dictionary` will take the *value* from `Dictionary 2`).

[**Scope**](https://docs.incari.com/incari-studio/2022.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Merge Dictionaries Node Attributes.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-6bc21a4eb3ce3cb480fd207e91780e57c883fb29%2Fmergedictionariesattributes.png?alt=media)

### Inputs

| Attribute | Type    | Description                                                                                 |
| --------- | ------- | ------------------------------------------------------------------------------------------- |
| `Count`   | **Int** | The number of **Dictionaries** you wish to merge. The default number is 2 **Dictionaries**. |

## Inputs

| Input                                    | Type           | Description                                                           |
| ---------------------------------------- | -------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►)                        | **Pulse**      | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Dictionary` *(`Count`* ***Attribute**)* | **Dictionary** | Two or more **Dictionaries** you wish to merge.                       |

## Outputs

| Output             | Type           | Description                                                                                                                            |
| ------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**      | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `New Dictionary`   | **Dictionary** | The merged **Dictionary**.                                                                                                             |

## See Also

* [**Dictionary Value**](https://docs.incari.com/incari-studio/2022.1/toolbox/dictionary/dictionary-value)
