Nodes/ComfyUI-RvTools_v2/Merge Strings v2
ComfyUI Node

Merge Strings v2

The same joiner, but typed and wired

By r-vage·Created about a year ago·Updated 5 months ago· 23
Merge Strings v2
    • string
    string_1
    string_2
    string_3
    string_4
    string_5
    Delimiter,

    Merge Strings v2 is the stricter sibling of the pack's plain Merge Strings. Same idea - join text inputs into one string with a delimiter - but where the original accepts five anything inputs and silently skips whatever isn't a string, this one declares its five inputs as STRING type and marks them forceInput, which means every slot expects a text wire, explicitly.

    So the real difference between the two versions is a philosophy difference, and it's worth picking a side. The original is forgiving: plug in a mix of stuff, get text out, non-strings quietly ignored. The v2 is honest: if a slot is meant to be a string, you connect a string, and the type system enforces it for you. If you're building a workflow you'll share, the typed version catches mistakes at wiring time instead of letting a wrong connection produce a subtly wrong prompt at the other end. If you're slapping a quick assembly together, the original's tolerance is nicer.

    Either way, the joining logic is identical and it's the good kind: only non-empty strings are joined, empty slots don't leave stray delimiters, and the delimiter defaults to ", " for prompt-style assembly. Set it to "\n" and the node treats it as a literal newline, which turns it into a mini multi-line caption builder.

    Inputs and outputs

    • string_1 through string_5 (STRING, optional, forceInput) - five text inputs that must be wired, not typed.
    • Delimiter (STRING, default ", ") - the joiner between parts.
    • Output string (STRING) - the merged result, ready for a CLIP Text Encode or a text display node.

    Joining happens in slot order (string_1 through string_5), which on this 5-slot version is exactly what you'd expect.

    Installing it

    Ships in ComfyUI-RvTools_v2:

    cd ComfyUI/custom_nodes
    git clone https://github.com/r-vage/ComfyUI-RvTools_v2
    

    Restart ComfyUI or install via ComfyUI Manager (search "RvTools"). No model downloads; dependencies are the standard torch/numpy/Pillow plus opencv-python, pilgram, pynvml, piexif.

    Gotchas

    The pack's README says it's no longer maintained, superseded by ComfyUI_Eclipse (same author). Still works.

    The trap is the forceInput design: you can't double-click and type into these slots - every one of them expects a connected wire, including an empty-string source if you want to intentionally skip a slot. That's the price of the type-safety, and for most people it's worth it. And if you need more than five inputs, the v2 "Large" version has ten - just be aware that one sorts its slots lexicographically, so string_10 gets joined before string_2.

    Category🫦 RvTools II/ Text

    Inputs (6)

    NameTypeDefaultDescription
    string_1optSTRING
    string_2optSTRING
    string_3optSTRING
    string_4optSTRING
    string_5optSTRING
    DelimiteroptSTRING,

    Outputs (1)

    NameTypeDescription
    stringSTRING