# Flow Logic

Autom8 AI lets you build powerful, flexible workflows with complex logic paths—without writing full applications. Core nodes and flow tools help you control execution, manage branching, and respond to dynamic conditions in real time.

***

#### **What You Can Do**

* **Split** paths based on conditions using **If** or **Switch** nodes
* **Merge** data streams using **Merge**, **Compare Datasets**, or **Code** nodes
* **Loop** over data sets with **Loop** and **If** nodes
* **Wait** for events, delays, or external triggers with the **Wait** node
* **Run Sub-Workflows** using **Execute Workflow** or **Execute Workflow Trigger** nodes
* **Handle Errors** using **Stop and Error** or **Error Trigger** nodes
* **Control Execution Order** in workflows with multiple branches

***

#### **When to Use It**

Use flow logic when you need to:

* Build decision trees
* Handle dynamic routing or retry logic
* Merge and compare incoming data streams
* Perform asynchronous operations or long waits
* Trigger fallback or error-handling workflows

***

#### **Before You Start**

You’ll need a basic understanding of how data moves through Autom8 AI:

* How data is structured inside nodes
* How inputs and outputs are passed between steps
