Nodes/Comfyui-ergouzi-Nodes/2🐕Text arbitrary splicing
ComfyUI Node

2🐕Text arbitrary splicing

Join whichever text fields you filled in

By 11dogzi·Created 2 years ago·Updated 2 years ago· 102
2🐕Text arbitrary splicing
    • concatenated_text
    text1
    text2
    text3
    text4
    text5
    Splicing_Characters
    Exclude_Characters
    Exclude_words

    This is the plain, deterministic cousin of ergouzi's "Text random splicing" node. Same idea - up to five text fragments joined into one string - minus the randomness. No seed, no picking a subset; whatever you've filled in gets joined, in order, every single time. It's the node for when you want a reliable prompt-assembly step, not a wildcard.

    That's a more common need than it sounds. A lot of prompt-building workflows aren't about randomizing content, they're about modularizing it: keep your subject description in one box, your style tags in another, your quality boilerplate in a third, and combine them in one place instead of maintaining one giant string that you re-edit every time you want to swap one piece. This node is exactly that combine step.

    How it works

    Five optional multiline fields, text1 through text5 - fill in as many as you need, leave the rest blank. Splicing_Characters is the separator inserted between whichever fields are populated (a comma, a newline, whatever matches your prompt style). Exclude_Characters strips specific characters from the final joined string, and Exclude_words strips whole words or phrases - useful for scrubbing a placeholder or stray punctuation that would otherwise leak into your prompt. Output is a single concatenated_text STRING.

    What to actually set

    Just decide how many of the five slots you need and pick a Splicing_Characters value that matches the rest of your prompt - most people use , . The exclude fields are there for cleanup, not something you need on every use.

    Installing it

    ComfyUI Manager: search "Comfyui-ergouzi-Nodes" and install. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/11dogzi/Comfyui-ergouzi-Nodes.git
    

    then restart ComfyUI. No models, no heavy dependencies - pure string handling. As with the rest of this pack: the English repo is the frozen branch; the author's active development is in a separate, Chinese-first sibling repo.

    Common issues & troubleshooting

    Output isn't what you expect. With no randomness in the mix, an unexpected result almost always traces back to which slots actually have content - double-check you didn't leave a field blank you meant to fill, or fill one you meant to leave empty.

    A word vanished from the middle of a longer phrase. Exclude_words matches the string you give it, and that can catch it as a substring of something longer, not just as a standalone word. If content is disappearing where you didn't expect, that's the first thing to check.

    You actually wanted variation between runs. This node is deliberately deterministic - that's the whole point of it existing alongside the pack's Text random splicing node, which adds a seed and randomly selects rather than always joining everything. Reach for that one instead if you want the combination to change run to run.

    Category2🐕/🗒️Text

    Inputs (8)

    NameTypeDefaultDescription
    text1optSTRING
    text2optSTRING
    text3optSTRING
    text4optSTRING
    text5optSTRING
    Splicing_CharactersoptSTRING
    Exclude_CharactersoptSTRING
    Exclude_wordsoptSTRING

    Outputs (1)

    NameTypeDescription
    concatenated_textSTRING