> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 连接（StringConcatenate）

<div class="node-meta"><code>StringConcatenate</code><span>text</span><span>角色：文本工具</span></div>

StringConcatenate 节点通过指定的分隔符将两个文本字符串合并为一个。它接收两个输入字符串和一个分隔符字符或字符串，然后输出一个单一的字符串，其中两个输入通过分隔符连接在一起。

## 参数

| 参数          | 类型     | 默认 / 范围 | 说明           |
| ----------- | ------ | ------- | ------------ |
| `string_a`  | STRING | 多行文本    | 文本输入。        |
| `string_b`  | STRING | 多行文本    | 文本输入。        |
| `delimiter` | STRING | 文本      | 拆分/合并时使用的字符。 |

## 输出

| 输出     | 类型     | 说明 |
| ------ | ------ | -- |
| STRING | STRING | 文本 |

## 怎么接

- **上游**：PrimitiveString / 上一级文本节点
- **下游**：CLIPTextEncode.text / SaveText / 其他文本节点
- **接线**：纯文本处理：上游接 PrimitiveString 或上一级文本节点，输出接 CLIPTextEncode 的 `text`、SaveText 或文件名参数，用来批量生成/改写提示词。

## 使用案例

从 `string_a`（多行文本）、`string_b`（多行文本）、`delimiter`（文本） 开始填就能跑起来。典型接法：`PrimitiveString` → 本节点 → `CLIPTextEncode.text`。输出类型是 STRING，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![StringConcatenate 端口与连线示意](/svg/StringConcatenate.svg)

## 同类节点

[保存文本](/nodes/09/SaveText.md) · [文本前添加](/nodes/09/AddTextPrefix.md) · [文本后添加](/nodes/09/AddTextSuffix.md) · [构建 JSON 提示（Ideogram）](/nodes/09/BuildJsonPromptIdeogram.md) · [大小写转换器](/nodes/09/CaseConverter.md) · [数组转字符串](/nodes/09/ConvertArrayToString.md) · [字典转字符串](/nodes/09/ConvertDictionaryToString.md) · [从JSON提取字符串](/nodes/09/JsonExtractString.md) · [融合文本序列](/nodes/09/MergeTextLists.md) · [正则表达式提取](/nodes/09/RegexExtract.md) · [正则表达式匹配](/nodes/09/RegexMatch.md) · [正则表达式替换](/nodes/09/RegexReplace.md)
