ComfyUI > Nodes > ComfyUI Fictiverse Nodes > Text Enable With Prefix

ComfyUI Node: Text Enable With Prefix

Class Name

Text Enable With Prefix

Category
Fictiverse/Text
Author
Fictiverse (Account age: 1343days)
Extension
ComfyUI Fictiverse Nodes
Latest Updated
2026-04-26
Github Stars
0.02K

How to Install ComfyUI Fictiverse Nodes

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

Text Enable With Prefix Description

Conditionally prepends a prefix to text based on a boolean, enhancing text formatting control.

Text Enable With Prefix:

The "Text Enable With Prefix" node is designed to enhance text processing by allowing you to conditionally prepend a prefix to a given text. This node is particularly useful when you want to dynamically control whether a prefix should be added to your text based on a boolean condition. It provides a streamlined way to manage text formatting, ensuring that your text outputs are consistent and meet specific requirements. By using this node, you can easily toggle the inclusion of a prefix, which can be beneficial in various scenarios such as labeling, categorizing, or simply adding context to your text data. The node's primary function is to either combine the prefix with the text or return the prefix alone, depending on the enablement condition, thus offering flexibility and control over text output.

Text Enable With Prefix Input Parameters:

enable

The enable parameter is a boolean input that determines whether the prefix should be added to the text. When set to True, the node will concatenate the prefix with the text, provided both are non-empty. If set to False, the node will bypass the text and return only the prefix. This parameter is crucial for controlling the node's behavior and allows for dynamic text formatting based on your needs. The default value is True.

text

The text parameter is a string input where you can provide the main body of text to which the prefix may be added. This input supports multiline text, allowing for more extensive content to be processed. The text is stripped of any leading or trailing whitespace before processing, ensuring clean and consistent output. The default value is an empty string.

prefix

The prefix parameter is a string input that specifies the prefix to be added to the text. This input is mandatory, meaning it must be provided for the node to function correctly. The prefix is also stripped of any leading or trailing whitespace, ensuring that the final output is neatly formatted. This parameter is essential for defining the additional context or label you wish to prepend to your text.

Text Enable With Prefix Output Parameters:

text

The text output parameter is a string that represents the final processed text. Depending on the enable parameter, this output will either be the concatenation of the prefix and the main text or just the prefix alone. If both the prefix and text are provided and enable is True, the output will be a combination of both, separated by a space. If enable is False, the output will be the prefix only. This output is crucial for obtaining the desired formatted text based on the input conditions.

Text Enable With Prefix Usage Tips:

  • Use the enable parameter to dynamically control whether the prefix should be added, which is useful for conditional text formatting scenarios.
  • Ensure that both text and prefix inputs are free of unnecessary whitespace to maintain clean and professional output.
  • Consider using this node in workflows where text labeling or categorization is required, as it allows for easy addition of context to your text data.

Text Enable With Prefix Common Errors and Solutions:

Missing prefix input

  • Explanation: The node requires a prefix input to function correctly, and it may not have been provided.
  • Solution: Ensure that the prefix parameter is supplied with a valid string input, as it is a mandatory field for the node's operation.

Unexpected output format

  • Explanation: The output text may not be formatted as expected due to leading or trailing whitespace in the inputs.
  • Solution: Double-check the text and prefix inputs to ensure they do not contain unnecessary whitespace, as the node strips these before processing.

Text Enable With Prefix Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Fictiverse Nodes
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.