# If

The **IF connector** allows you to evaluate conditions and control the workflow path based on the result. It compares input data against defined conditions and determines whether the workflow should proceed through the **true** or **false** branch.

This connector is useful when workflows need to make decisions based on specific values or data conditions.

### Add conditions <a href="#add-conditions" id="add-conditions"></a>

Conditions can be added using the **Add Condition** filter. Each condition compares a data field against a specified value. The available comparison operations vary depending on the data type being evaluated.

**String Conditions**:

* Contains
* Not Contains
* Ends With
* Not Ends With
* Equal
* Not Equal
* Regex Match
* Regex Not Match
* Starts With
* Not Starts With
* Is Empty
* Is Not Empty

**Number Conditions**:

* Smaller
* Smaller or Equal
* Equal
* Not Equal
* Larger
* Larger or Equal
* Is Empty
* Is Not Empty

**Date & Time Conditions**:

* Occurred after
* Occurred before

**Boolean Conditions**:

* Equal
* Not Equal

### Combining Multiple Conditions <a href="#and-or" id="and-or"></a>

If multiple conditions are defined, you can combine them using logical operators.

#### AND

All conditions must be satisfied for the overall result to be **true**.

#### OR

Only one condition needs to be satisfied for the overall result to be **true**.


---

# 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://imbrace.gitbook.io/imbrace-documentation/workflows/if.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.
