> For the complete documentation index, see [llms.txt](https://giantgrey.gitbook.io/databrain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://giantgrey.gitbook.io/databrain/add-ons/logic/control-flow-execution-in-groups.md).

# Control flow execution in groups

With Logic you can control a flow inside of a group. So you can see groups as kind of a sub-graph.

### Start a group flow

To start a flow inside of a group, make sure there's either a **OnStart** node or a **OnStartGroup** node. Then you can simply start a group flow by using the **StartGroup** node. Make sure to select the group you want to start in the node inspector.

### Stop a group flow

To stop a flow inside of a group simply use the **StopGroup** node. Make sure to select the group you want to stop in the node inspector.

<figure><img src="/files/qfVgTinK0C0nIlnQk5CY" alt=""><figcaption><p>example from the included demo scene: Demo_04_GroupFlow</p></figcaption></figure>


---

# 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://giantgrey.gitbook.io/databrain/add-ons/logic/control-flow-execution-in-groups.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.
