# StartsWith

## Overview

![The StartsWith Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-84709239a72008fb49b702cc2826665dad3eb293%2Fstartswithnode20241.png?alt=media)

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

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

## Attributes

![The StartsWith Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-e4b0498f0a7f5f34d1a0ac49da1eb614e04e92ed%2Fstartswithattributes.png?alt=media)

| Attribute | Type       | Description                                                                                                                        |
| --------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `String`  | **String** | The **String** to be checked.                                                                                                      |
| `Pattern` | **String** | The *substring* that will be compared to the start 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 start 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. |
| `StartsWith`       | **Bool**  | Returns *True* or *False* depending on whether the comparison is true or not.                                                          |

## See Also

* [**EndsWith**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2025.1/toolbox/string/broken-reference/README.md)

## External Links

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