# Dictionary Value

## Overview

![The Dictionary Value Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-4c188f143c528683de209da18a93e25ba3425a25%2Fdictionaryvalueupdatedimage.png?alt=media)

The **Dictionary Value Node** defines a **Dictionary** by setting its *(key, value)* pairings.

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

## Attributes

![The Dictionary Value Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-afe3b693e2741de9bcd51dfac119482207232284%2Fdictionaryvalueattributeupdate.png?alt=media)

### Inputs

`Inputs` - The number of **Input** elements you wish to add to the **Attribute section**. Each **Input** element represents a *(key, value)* pair that is added to the **Dictionary Value** **Node**. The pairs in this section are used if no **Dictionary** is provided to the **Input** **Node**. The format of the section is the following:

| Attribute    | Type                                          | Description                                                                          |
| ------------ | --------------------------------------------- | ------------------------------------------------------------------------------------ |
| `Key`        | **String**                                    | The `Key` you wish to add to the **Dictionary Value** **Node**.                      |
| `Value Type` | **Drop-down**                                 | The `Data Type` of the `Value` you wish to add to the **Dictionary Value** **Node**. |
| `Value`      | *Defined in the* `Data Type` ***Attribute***. | The `Value` you wish to give to the `Key` introduced above.                          |

## Inputs

| Input             | Type           | Description                                                            |
| ----------------- | -------------- | ---------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**      | A standard **Input Pulse**, to trigger the execution of the **Node**.  |
| `Input`           | **Dictionary** | A **Dictionary** you wish to add to the **Dictionary Value** **Node**. |

## 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. |
| `Output`           | **Dictionary** | The **Dictionary** holding the (`Key`, `Value`) pairs that were added to the **Dictionary Value** **Node**.                            |

## See Also

* [**Clear Dictionary**](https://docs.incari.com/incari-studio/2023.1/toolbox/dictionary/clear-dictionary)

## External Links

* [Fundamentals of data structures: Dictionaries](https://en.wikibooks.org/wiki/A-level_Computing/AQA/Paper_1/Fundamentals_of_data_structures/Dictionaries) on Wikibooks.
* [Associative Array](https://en.wikipedia.org/wiki/Associative_array) on Wikipedia.
