# Dictionaries in Code Blocks

Not only does Dynamo 2.0 introduce the nodes previously discussed for dictionaries, there is new functionality in code blocks for this as well!

You can use syntax like below or DesignScript-based representations of the nodes.

![](https://1734247194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY5ZuHF3yuXFWp1C46ZSo%2Fuploads%2Fgit-blob-c145aa99562f26bde6989a61c12a368d48798edd%2Fdictionaries%20in%20cb%20-%20syntax.jpg?alt=media\&token=9606c576-fe3c-44b1-8469-87fd0cb54404)

Since a dictionary is an object type in Dynamo we can commit the following actions upon it.

![](https://1734247194-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY5ZuHF3yuXFWp1C46ZSo%2Fuploads%2Fgit-blob-dcfe284d8b5346d49babc201cb046d90d2b03e46%2Fdictionaries%20in%20cb%20-%20actions%20with%20code%20blocks.jpg?alt=media\&token=b924a137-71b3-442b-a853-815f630c8d9a)

Maintaining these sort of interactions becomes especially useful when relating Revit data to strings. Next, we will look at some Revit use-cases.


---

# 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://primer2.dynamobim.org/5_essential_nodes_and_concepts/5-5_dictionaries-in-dynamo/3-code-block-uses.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.
