# EndsWith

## Overview

![The EndsWith Node.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-becad3bc72e23732d4692a79920c08c3b45fa0f5%2Fendswithnode.png?alt=media)

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

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

## Attributes

![The EndsWith Node Attributes.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-b10c8393caf676f5ae4a6c3197e6a8bf6bd17056%2Fendswithattributes.png?alt=media)

| 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**](https://docs.incari.com/incari-studio/2022.1/toolbox/string/startswith)

## External Links

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