# Advanced Blocks

The Advanced blocks consists of two primary types of blocks: Variable Blocks and Function Blocks. These will be fundamental blocks to create more advanced and complex programs that require you to store and manage data throughout your program , as well as creating group related code together and execute it as a single unit. These blocks can help you make your code more modular, compact and easier to manage.

### Contents

{% content-ref url="advanced-blocks/variables" %}
[variables](https://lessons.mistyrobotics.com/blockly-elements/advanced-blocks/variables)
{% endcontent-ref %}

{% content-ref url="advanced-blocks/functions" %}
[functions](https://lessons.mistyrobotics.com/blockly-elements/advanced-blocks/functions)
{% endcontent-ref %}


---

# 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://lessons.mistyrobotics.com/blockly-elements/advanced-blocks.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.
