# Visual programming in TRIK Studio Junior

A program in the TRIK Studio Junior is represented as a sequence of the [blocks](/en/trik-studio-junior/visual-programming/blocks.md) connected by the [links](/en/trik-studio-junior/visual-programming/connection-between-blocks.md).&#x20;

![](/files/-MTavSTqmbFKGi4HjXJd)

Each program corresponds to the [main diagram](/en/trik-studio-junior/visual-programming.md#main-diagram), which may contain other [diagrams (subprograms)](/en/trik-studio-junior/visual-programming.md#subprograms). Diagrams are packaged in projects stored on the disk.

![](/files/-MTavVgM7wfBj7TAmlaL)

## Main diagram <a href="#main-diagram" id="main-diagram"></a>

The main diagram is created when the [project is created](/en/trik-studio-junior/start.md#project-creation). About adding and removing blocks to the [scene](/en/studio/interface.md#editor-window), read the article:

{% content-ref url="/pages/-MaDT\_3h6e4aB0nq3K5u" %}
[Adding and removing blocks in TRIK Studio Junior](/en/trik-studio-junior/visual-programming/blocks-add-delete.md)
{% endcontent-ref %}

## Subprograms

The diagrams with subprograms are created automatically when you add the block "Subprogram" to the scene. In this case, the subprogram is displayed by double-clicking on the "Subprogram" block on the scene.

![](/files/-MTavax1O3micIpXbk3P)

Read more about subprograms in the article:

{% content-ref url="/pages/-MaDUL4gQGbZYW0bO9Mr" %}
[Subprograms in TRIK Studio Junior](/en/trik-studio-junior/visual-programming/subprograms.md)
{% 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://help.trikset.com/en/trik-studio-junior/visual-programming.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.
