ComfyUI > Nodes > ComfyUI-LogicUtils > Merge String

ComfyUI Node: Merge String

Class Name

MergeString

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Merge String Description

Combines two strings into one with a specified delimiter for flexible text formatting.

Merge String:

The MergeString node is designed to seamlessly combine two strings into a single cohesive text. This node is particularly useful when you need to join different pieces of text, such as combining user inputs, merging data from various sources, or constructing complex strings for further processing. By allowing you to specify a delimiter, the node provides flexibility in how the strings are joined, enabling you to create a variety of text formats effortlessly. This capability is essential for tasks that require dynamic text generation or manipulation, making it a valuable tool for AI artists who need to manage and manipulate text data efficiently.

Merge String Input Parameters:

string_a

This parameter represents the first string to be merged. It can contain any text, and its content will be combined with the second string based on the specified delimiter. There are no specific minimum or maximum values, as it accepts any string input.

string_b

This parameter is the second string to be merged with the first. Like string_a, it can contain any text, and its content will be joined with string_a using the delimiter. There are no specific constraints on its length or content.

delimiter

The delimiter is a string that will be inserted between string_a and string_b during the merging process. It allows you to control how the two strings are joined, whether by a space, comma, or any other character or sequence of characters. The default value is an empty string, meaning the strings will be concatenated directly without any separator.

Merge String Output Parameters:

output_string

The output of the MergeString node is a single string that results from the concatenation of string_a and string_b, separated by the specified delimiter. This output is crucial for creating structured text outputs, enabling further text processing or display in applications.

Merge String Usage Tips:

  • Use a space as a delimiter to ensure readability when merging sentences or phrases.
  • Consider using special characters or sequences as delimiters to create unique identifiers or formats in the merged string.

Merge String Common Errors and Solutions:

EmptyStringError

  • Explanation: This error occurs when both string_a and string_b are empty, resulting in an empty output.
  • Solution: Ensure that at least one of the input strings contains text to avoid an empty result.

InvalidDelimiterError

  • Explanation: This error might occur if the delimiter is not a valid string or contains unsupported characters.
  • Solution: Verify that the delimiter is a valid string and does not contain any characters that might cause issues in your specific use case.

Merge String Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.