---
title: "Contains Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/containstext
markdown: https://docs.nodetool.ai/nodes/nodetool/text/containstext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/containstext.md
---

# Contains Text

**Type:** `nodetool.text.Contains`

**Namespace:** `nodetool.text`

## Description

Checks if text contains a specified substring.
    text, compare, validate, substring, string

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` |  | `` |
| substring | `str` |  | `` |
| search_values | `list[str]` | Optional list of additional substrings to check | `[]` |
| case_sensitive | `bool` |  | `true` |
| match_mode | `enum` | ANY requires one match, ALL needs every value, NONE ensures none | `any` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `bool` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
