> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/2022.1/toolbox/string/endswith.md).

# EndsWith

## Overview

![The EndsWith Node.](/files/ONrLX8TPywRXeD7ddW9M)

**The EndsWith Node** checks if a **String** ends with a *substring*, or `Pattern`, and returns a **Bool** of either *True* or *False*.

[**Scope**](/incari-studio/2022.1/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The EndsWith Node Attributes.](/files/uJbzKSXim8IJDZslf7E5)

| Attribute | Type       | Description                                                                                                                      |
| --------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `String`  | **String** | The **String** to be checked.                                                                                                    |
| `Pattern` | **String** | The *substring* that will be compared to the end of the aforementioned **String**, if none is given in the **Input** **Socket**. |

## Inputs

| Input             | Type       | Description                                                                        |
| ----------------- | ---------- | ---------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**  | A standard **Input Pulse**, to trigger the execution of the **Node**.              |
| `String`          | **String** | The **String** to be checked.                                                      |
| `Pattern`         | **String** | The *substring* that will be compared to the end of the aforementioned **String**. |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `EndsWith`         | **Bool**  | Returns *True* or *False* depending on whether the comparison is true or not.                                                          |

## See Also

* [**StartsWith**](/incari-studio/2022.1/toolbox/string/startswith.md)

## External Links

* More on *substrings* on [Wikipedia](https://en.wikipedia.org/wiki/Substring).
