# Conditional Node

The conditional node enables dynamic decision-making and branching logic within workflows. It allows workflows to evaluate specific conditions or rules and execute different paths based on the outcome.

<figure><img src="https://2302384909-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUJInHjoAOfzq3bL12Af%2Fuploads%2FZVW8MkRNCCMjI2pYbas6%2Fconditional%20node%202.png?alt=media&#x26;token=29681dde-2b88-4b15-90c4-4ecb5da4e5ac" alt="" width="563"><figcaption><p>Conditional Node Workflow</p></figcaption></figure>

In the risk analysis example above, the workflow input is passed to a senior analyst model. Based on the determined risk and reward, different actions are taken. If the risk is low enough, a draft proposal is be generated. If the risk is too high, more analysis can be run. If the risk to reward ratio is in the middle, more research can be done with integrations. If the ratio falls outside expected boundaries, company policies can be searched to determine the right course of action. &#x20;

### Setting Up Conditionals

<figure><img src="https://2302384909-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUJInHjoAOfzq3bL12Af%2Fuploads%2FdDGdRkNmnDQf7hoHprpp%2Fcondition.png?alt=media&#x26;token=1104a450-9e13-4cd0-9e6c-7880edb206a5" alt="" width="393"><figcaption><p>Condition</p></figcaption></figure>

Each condition has a name and the set of criteria which define it. You specify a variable from an earlier step in the workflow, the condition, and the value to compare it against. Values can be strings or integers/floats depending on which condition is selected. For a single condition, you can specify multiple criteria using `and` or `or` .&#x20;

<figure><img src="https://2302384909-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUJInHjoAOfzq3bL12Af%2Fuploads%2FWRKkslurBzeYlUHAXMNK%2Fconditions.png?alt=media&#x26;token=97f21a51-0c6f-4123-a7f5-e00c9a008dab" alt="" width="304"><figcaption></figcaption></figure>

Once the conditions have been defined, the action which occurs for each condition can be specified within the conditional node, by setting `Then:` or you can drag a connection line to your next node.

#### Supported Operators

* `==`  checks if the selected variable is equal to the provided value
* &#x20;`!=` checks if the selected variable is not equal to the provided value
* `>` checks if the selected variable is greater than the provided value
* `<` checks if the selected variable is less than the provided value
* `>=` checks if the selected variable is greater than or equal to the provided value
* `<=` checks if the selected variable is less than or equal to the provided value
* `in` checks if the selected variable contains the provided value/text
* `not in` checks if the selected variable does not contains the provided value/text


---

# 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.arcee.ai/arcee-orchestra/workflows/workflow-components/conditional-node.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.
