Nodes/ComfyUI Fictiverse Nodes/Text Enable With Prefix
ComfyUI Node

Text Enable With Prefix

Prepend a prefix to your text — and flip it on and off

By Fictiverse·Created 3 years ago·Updated 23 days ago· 27
Text Enable With Prefix
    • text
    enabletrue
    text
    prefix

    This is a small text-shaping node with a twist: it prepends a prefix to your text, and a boolean decides whether the prefix survives. On, you get prefix text. Off, you get just the prefix. Either way, out comes one clean string.

    It sounds too simple to matter until you've got a workflow where the same modifier should be present in some runs and absent in others. A style prefix you want to A/B against ("photorealistic," "cinematic lighting"), a camera tag, a character name, a negative-prompt block you toggle per experiment. Instead of editing a prompt box every time, you flip a switch. That's the entire value, and it's a genuinely comfortable pattern for prompt experimentation - the kind of thing that keeps a workflow readable instead of forcing you to dig through a text field on every run.

    How it works

    Three inputs, one rule. When enable is on, it strips both strings and joins them as prefix + " " + text. When off, it discards the text entirely and returns the prefix alone. The edge cases are sensible: if either side is empty while enabled, you get whichever one isn't. What you should notice is the deliberate asymmetry - off isn't "nothing," it's "prefix only." That's useful when the prefix is your baseline and the text is the variable experiment.

    Inputs and outputs

    • enable (BOOLEAN, default true) - the switch.
    • text (STRING, multiline) - the variable part, the thing being prefixed.
    • prefix (STRING) - the part stuck on the front. Note this one's a socket: prefix is marked as a forced input, so in the UI it's a connectable wire rather than just a plain text field. You chain other text nodes into it, which is handier than it first looks.
    • text (STRING) - the result.

    Wire the output into anything that consumes strings - a prompt encoder, a filename builder, a Show Text preview, another assembler. If you're using it for prompts, note it feeds plain text, so put it before the CLIP/LLM encode step, not after.

    Installing it

    It ships in ComfyUI Fictiverse Nodes, a single-author utility pack with zero Python dependencies beyond ComfyUI and no model downloads.

    • ComfyUI Manager → search ComfyUI Fictiverse Nodes → Install, restart.
    • Or: cd ComfyUI/custom_nodes && git clone https://github.com/Fictiverse/ComfyUI_Fictiverse, restart.

    Common issues

    The most common confusion is that off ≠ empty. People wire it up, flip the switch expecting a blank, and get the bare prefix instead. If you genuinely want "nothing comes out," you need a different gate - a text switch or bypass. The other quirk is the forced-input prefix socket: beginners sometimes look for a box to type into and miss that they're expected to wire a value in. Both behaviors are the author's intent, so it's a "know the pattern, not a bug" situation.

    Pack-level note: Fictiverse nodes appear in shared workflows (the Wan 2.2 animate templates on Reddit use them), and the classic failure is loading one without the pack - ModuleNotFoundError: No module named 'custom_nodes.ComfyUI_Fictiverse'. Install, restart, reload.

    CategoryFictiverse/Text

    Inputs (3)

    NameTypeDefaultDescription
    enableBOOLEANtrue
    textSTRING
    prefixSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING