ComfyUI > Nodes > ComfyUI > String (Multiline)

ComfyUI Node: String (Multiline)

Class Name

PrimitiveStringMultiline

Category
utils/primitive
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

String (Multiline) Description

Handle and process multiline string data in a node-based environment for seamless integration and manipulation.

String (Multiline):

The PrimitiveStringMultiline node is designed to handle and process multiline string data within a node-based environment. This node is particularly useful when you need to work with text that spans multiple lines, such as paragraphs or code blocks, allowing for seamless integration and manipulation of such data. By supporting multiline input, it provides flexibility and convenience for tasks that involve complex text structures, ensuring that the entire content is preserved and processed as intended. The primary function of this node is to accept a multiline string and return it unchanged, making it an essential utility for scenarios where multiline text needs to be passed through a workflow without alteration.

String (Multiline) Input Parameters:

value

The value parameter is the core input for the PrimitiveStringMultiline node, representing the multiline string that you wish to process. This parameter is designed to accept text that includes line breaks, allowing you to input complex text structures such as paragraphs, lists, or code snippets. There are no specific minimum or maximum values for this parameter, as it is intended to handle any length of text that fits within the constraints of your system's memory. The value parameter does not have a default value, meaning you must provide the text you wish to process each time you use the node. This flexibility ensures that you can work with a wide range of text inputs, making the node versatile for various applications.

String (Multiline) Output Parameters:

STRING

The output of the PrimitiveStringMultiline node is a single parameter of type STRING. This output represents the multiline string that was input into the node, returned unchanged. The primary purpose of this output is to allow the multiline text to be passed along to subsequent nodes in your workflow, ensuring that the content remains intact and unaltered. This functionality is crucial for maintaining the integrity of complex text data as it moves through different processing stages, making the node a reliable component for handling multiline strings in a node-based environment.

String (Multiline) Usage Tips:

  • Use the PrimitiveStringMultiline node when you need to pass multiline text through a workflow without modifying its content. This is particularly useful for handling text data that includes line breaks, such as paragraphs or code blocks.
  • Ensure that the text you input into the value parameter is correctly formatted with the necessary line breaks, as the node will preserve the text exactly as it is provided.

String (Multiline) Common Errors and Solutions:

Input value is not a string

  • Explanation: This error occurs when the input provided to the value parameter is not of type STRING. The node expects a string input, and providing a different data type will result in an error.
  • Solution: Ensure that the input to the value parameter is a valid string. If you are passing data from another node, verify that the output of that node is of type STRING.

Multiline string exceeds memory limits

  • Explanation: If the multiline string is too large, it may exceed the memory limits of your system, causing performance issues or errors.
  • Solution: Consider breaking down the multiline string into smaller parts or optimizing your system's memory usage to accommodate larger text inputs.

String (Multiline) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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 Playground, enabling artists to harness the latest AI tools to create incredible art.