ComfyUI > Nodes > ComfyUI-LogicUtils > Static String

ComfyUI Node: Static String

Class Name

StaticString

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

Static String Description

The StaticString node generates a constant string for consistent use across project workflows.

Static String:

The StaticString node is designed to provide a simple yet powerful way to generate a constant string value within your workflow. This node is particularly useful when you need to repeatedly use a specific string value across different parts of your project without manually re-entering it each time. By offering a static string, it ensures consistency and reduces the risk of errors that might occur from manual input. This node is ideal for scenarios where a fixed text is required, such as setting default values, labels, or any other constant text elements in your AI art projects. Its primary function is to return the exact string you specify, making it a reliable component for maintaining uniformity in your creative processes.

Static String Input Parameters:

string

The string parameter is the core input for the StaticString node, allowing you to define the exact text that will be returned as output. This parameter accepts any string value, which can include letters, numbers, symbols, or even empty text. The default value for this parameter is an empty string (""), meaning if you do not specify a value, the node will return an empty string. There are no minimum or maximum length restrictions, giving you the flexibility to input any text that suits your needs. This parameter is crucial for setting the static text that you want to use consistently throughout your project.

Static String Output Parameters:

STRING

The STRING output parameter provides the static string value that you have defined in the input. This output is crucial for ensuring that the same text is used consistently wherever the node is connected in your workflow. The output is exactly the same as the input string, making it a straightforward and reliable way to manage constant text values. This ensures that any part of your project that relies on this node will receive the exact string you intended, maintaining consistency and reducing the potential for errors.

Static String Usage Tips:

  • Use the StaticString node to set default text values that need to be reused across multiple nodes or components in your project, ensuring consistency and reducing manual input errors.
  • When working on projects that require specific labels or identifiers, use the StaticString node to maintain uniformity and avoid discrepancies in text usage.

Static String Common Errors and Solutions:

Invalid String Input

  • Explanation: This error occurs when the input provided is not recognized as a valid string, possibly due to incorrect formatting or unsupported characters.
  • Solution: Ensure that the input is a valid string by checking for any unsupported characters or formatting issues. Use plain text without special formatting to avoid this error.

Empty String Output

  • Explanation: This issue arises when the node outputs an empty string, which might not be the intended result.
  • Solution: Verify that the string input parameter is not left empty unless an empty output is desired. Double-check the input value to ensure it matches your expectations.

Static 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.

Static String