---
title: "Contains Text Step"
url: "https://docs.robotiq.ai/en/article/contains-text-step"
language: "en"
last_updated: "2025-12-24T14:20:01.768Z"
---

# Contains Text Step

The Contains Text step checks if one piece of text is inside another. You can use this to check data or control how your process runs.

## How to Use the Contains Text Step

Use this step to look for text within a variable.

### Step 1: Add the Contains Text Step

1.  Drag the **Contains Text** step into your process.
2.  (Optional) Give the step a different name in the **Step name** field.

### Step 2: Set Up Input Parameters

**Source text variable** (Required)

-   This is the variable that holds the text you want to search through.
-   **Example:** A variable called `emailBody` that has the full text of an email.

**Text to contain** (Required)

-   This is the specific text you are looking for.
-   You can type in the text directly or use an existing variable.
-   **Example:** The words "invoice number" or a variable called `keyword`.

**Use regex** (Required)

-   Choose `T` (True) if you want to use a regular expression for your search.
-   Choose `F` (False) if you are looking for an exact text match. This is the default.
-   Regular expressions let you match more complex patterns.

### Step 3: Define Output Parameter

**Contains** (Required)

-   This is a new or existing True/False variable.
-   It will store the search result:
    -   `True` if the "Text to contain" is found in the "Source text variable".
    -   `False` if the "Text to contain" is not found.
-   **Example:** A variable called `foundKeyword`.

## Parameters Explained

**Step name** (Optional)

-   A custom name for this step in your process.

**Source text variable** (Required)

-   The text variable where the search will happen.

**Text to contain** (Required)

-   The text or variable you want to find.

**Use regex** (Required)

-   `T` (True): Turns on regular expression matching.
-   `F` (False): Does an exact text search. This is the default.

**Contains** (Required)

-   A True/False variable that stores `True` or `False` based on the search result.

## Related Articles

-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step)
-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step)
-   [Get Subtext Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/get-subtext-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/af366080-7e03-458d-b476-83c834738d43)
