# Controlling flows

The AFX system includes multiple nodes that you can use to control flows. This includes conditional branching, looping, and one time activation.

For example, if you wanted an object to begin moving, and to continue moving, after a collision took place, you could use a `Toggle` node.

<figure><img src="/files/WkPTp2TvxO57K8PhZgBq" alt=""><figcaption></figcaption></figure>

In this example, the `Start` node sets the initial state of the `Toggle` node, turning it off. A collision event would then turn on the `Toggle` node, which would remain on and pass the update flow through to the `Translate` node each frame.


---

# 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://docs.engagevr.io/developer/afx/afx-graphs/flows/controlling-flows.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.
