> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# StringContains - ComfyUI Built-in Node Documentation

> Complete documentation for the StringContains node in ComfyUI. Learn its inputs, outputs, parameters and usage.

StringContains 节点用于检查给定字符串是否包含指定的子字符串。它可以通过区分大小写或不区分大小写的匹配方式执行此检查，并返回一个布尔值结果，指示在主字符串中是否找到了该子字符串。

## 输入

| 参数      | 描述                     | 数据类型    | 是否必填 | 范围 |
| ------- | ---------------------- | ------- | ---- | -- |
| `字符串`   | 要在其中搜索的主文本字符串          | STRING  | 是    | -  |
| `子字符串`  | 要在主字符串中搜索的文本           | STRING  | 是    | -  |
| `区分大小写` | 确定搜索是否应区分大小写（默认值：true） | BOOLEAN | 否    | -  |

## 输出

| 输出名称 | 描述                               | 数据类型    |
| ---- | -------------------------------- | ------- |
| `包含` | 如果在字符串中找到子字符串则返回 true，否则返回 false | BOOLEAN |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringContains/zh.md)

***

**Source fingerprint (SHA-256):** `ef7329ca8586e0f894306d93835490edb948a346db1e0cb011e4da5a6fe44202`
