# Contains

## Overview

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

The **Contains** **Node** receives two **Strings** and checks whether one is a *substring* of the other. It outputs the result as a **Boolean**.

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

## Attributes

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

| Attribute | Type       | Description                                                                                               |
| --------- | ---------- | --------------------------------------------------------------------------------------------------------- |
| `String`  | **String** | **String** to be checked for having `Pattern` as a *substring*, if none is given in the **Input Socket**. |
| `Pattern` | **String** | **String** to be checked for being a *substring* of `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** | **String** to be checked for having `Pattern` as a *substring*.       |
| `Pattern`         | **String** | **String** to be checked for being a *substring* of `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. |
| `Contains`         | **Bool**  | *True*, if `Pattern` is a *substring* of `String`; *false*, otherwise.                                                                 |

## External Links

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