> For the complete documentation index, see [llms.txt](https://docs.spydra.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spydra.app/how-to/private-network/workflow/condition.md).

# Condition

#### **If condition**

A conditional statement is used within a workflow to determine branching. If the defined conditions are true, the workflow will branch to the YES branch. Otherwise, it will branch to the NO branch.

A condition can be a combination of one or more operations from the below.

* equals
* not equals
* greater than
* less than
* greater than equal to
* less than equal to
* contains
* Not contains
* Starts with
* Not start with
* End with
* Not end with

To define an if condition, select an operation from the above list, and then define the field and value for the condition.

#### **Foreach**

The workflow includes a construct that iterates over a collection or set of assets, enabling actions or tasks to be performed on each individual record. You can define a set of actions or tasks for each record in the collection.
