> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/nodes/built-in-tools/branch.md).

# Branch

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

<figure><img src="/files/zyTfwm2hqHKTm0l1zxYj" alt="" width="419"><figcaption></figcaption></figure>

## Description

**What it does**: The Branch node allows you to create decision points in your workflow, making it adaptable and efficient. It's like saying, "If this condition is true, do this; otherwise, do that.

**When to use it?** Imagine you are processing customer orders. You can use a Branch node to check if the order total exceeds a certain amount. If it does, you might send the order for manager approval; if not, you can automatically process the order.

<figure><img src="/files/4aSCtQOfc4q1XTa7iD3v" alt=""><figcaption></figcaption></figure>

## Component settings

| Parameter Name   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Only continue if | The condition to continue on this branch. On the first dropdown list you have to enter your input data. The second is all the 21 different conditions. The third is to complete the condition with a text or a date                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Condition        | <p>Refers to all the 21 different conditions: </p><ul><li>(Text) Contains</li><li>(Text) Does not contain</li><li>(Text) Exactly matches</li><li>(Text) Does not exactly match</li><li>(Text) Is in</li><li>(Text) Is not in</li><li>(Text) Starts with</li><li>(Text) Does not start with</li><li>(Text) Ends with</li><li>(Text) Does not end with</li><li>(File format) Are</li><li>(Number) Equals</li><li>(Number) Greater than</li><li>(Number) Less than</li><li>(Date/time) Equal</li><li>(Date/time) After</li><li>(Date/time) Before</li><li>(Boolean) Is true</li><li>(Boolean) Is false</li><li>Exists</li><li>Does not exists</li><li>Is Null</li><li>Is Not Null</li></ul> |
| Form             | <p>Only available for Text, File format, Number and Date/time. </p><p>This allows you to enter a text, a number or a date/time.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

## Advanced configurations

This Branch component has no advanced configurations.

## Use case

Here is a simple use case of the Branch component, where the Branch component is being used with the condition "Text Starts with".

<figure><img src="/files/TUUqiyFojHpqJ6VdwF4x" alt=""><figcaption></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, and the optional `goal` query parameter:

```
GET https://docs.diaflow.io/workflow-builder/nodes/built-in-tools/branch.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
