> ## 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.

# Ends With

> Check whether text finishes with a specific sequence of characters.

The **Ends With** action returns whether a string ends with an exact suffix.
It is useful for checking file extensions, domain endings, and naming
conventions.

## Inputs

| Input           | Type    | Required | Description                                                      |
| --------------- | ------- | -------- | ---------------------------------------------------------------- |
| **Text**        | String  | Yes      | The text to check.                                               |
| **Search**      | String  | Yes      | The suffix expected at the end of the text.                      |
| **Ignore Case** | Boolean | No       | Compares lowercase versions of both values. Defaults to `false`. |

## Outputs

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

## Example

`report.PDF` ends with `.pdf` only when **Ignore Case** is enabled.

<Note>
  The action does not trim whitespace. A trailing space or line break is part of
  the text and can cause an otherwise matching suffix to return `false`.
</Note>
