> For the complete documentation index, see [llms.txt](https://docs.cascade.io/cascade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cascade.io/cascade/functions-and-expressions/functions/text/endswith.md).

# ENDSWITH

ENDSWITH(`string`, `substring`)

Determines whether the given `string` ends with the specified `substring`

### Arguments

| Argument    | Description                                       |
| ----------- | ------------------------------------------------- |
| `string`    | String(s) to search for `substring` within        |
| `substring` | Substring(s) to search for at the end of `string` |

### Output

Returns True if the string ends with the specified `substring`, returns False otherwise

### Example

{% embed url="<https://datawrapper.dwcdn.net/UtC0L/1>" %}
