> For the complete documentation index, see [llms.txt](https://lessons.mistyrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lessons.mistyrobotics.com/blockly-elements/basic-blocks.md).

# Basic Blocks

Basic blocks are essential for writing any complex program, as they allow you to add and nest additional values, as well as create specific conditions for your program. As you progress throughout your lessons you will find that you will need more and more of these blocks.&#x20;

### Contents

{% content-ref url="/pages/XBBuiUi8r3fIC4g5QohY" %}
[Logic](/blockly-elements/basic-blocks/logic.md)
{% endcontent-ref %}

{% content-ref url="/pages/KDtPBFHKK7rEVZI1r5Ds" %}
[Loops](/blockly-elements/basic-blocks/loops.md)
{% endcontent-ref %}

{% content-ref url="/pages/5dNVWOuCQ3LEdk59hXgw" %}
[Math](/blockly-elements/basic-blocks/math.md)
{% endcontent-ref %}

{% content-ref url="/pages/zwDKCmkCu7drKxU3xXms" %}
[Text](/blockly-elements/basic-blocks/text.md)
{% endcontent-ref %}

{% content-ref url="/pages/VkB1Umqo5MLcOAj9ljQf" %}
[Lists](/blockly-elements/basic-blocks/lists.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/basic-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.
