> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Contains Text

> Check whether one piece of text appears anywhere inside another.

The **Contains Text** action searches a string for an exact piece of text and
returns a boolean. Use it to route workflows based on keywords, identifiers, or
short phrases.

## Inputs

| Input           | Type    | Required | Description                                                      |
| --------------- | ------- | -------- | ---------------------------------------------------------------- |
| **Text**        | String  | Yes      | The text to search.                                              |
| **Search**      | String  | Yes      | The exact sequence of characters to find.                        |
| **Ignore Case** | Boolean | No       | Compares lowercase versions of both values. Defaults to `false`. |

## Outputs

| Output     | Type    | Description                                                   |
| ---------- | ------- | ------------------------------------------------------------- |
| **Result** | Boolean | `true` when **Search** occurs in **Text**; otherwise `false`. |

## Example

With **Text** set to `Order REF-204 is ready` and **Search** set to `ref-204`,
the result is `false`. Turn on **Ignore Case** to return `true`.

<Note>
  The search is literal. Characters such as `.`, `*`, and `?` have no special
  meaning. Use **Matches Regex** when you need pattern matching.
</Note>
