Nodes/ComfyUI-RvTools_v2/Merge Strings v2 (Large)
ComfyUI Node

Merge Strings v2 (Large)

Ten typed slots, still with the ordering quirk

By r-vage·Created about a year ago·Updated 5 months ago· 23
Merge Strings v2 (Large)
    • string
    string_1
    string_2
    string_3
    string_4
    string_5
    string_6
    string_7
    string_8
    string_9
    string_10
    Delimiter,

    Merge Strings v2 (Large) is the ten-slot, typed-strict version of the pack's string joiner. Ten STRING inputs, each marked forceInput so every one of them expects a real text wire, joined into a single string with a delimiter that defaults to ", ". It's the big-graph workhorse of the Merge Strings family: enough slots to assemble a serious prompt from a wildcard roller, style presets, lora trigger words, and a base subject - all with the type-safety that catches a wrong connection before it becomes a weird prompt.

    The family tree helps you pick the right one. There are four variants: 5-slot and 10-slot, each in a permissive (any-type, skips non-strings) and a strict (typed STRING, forceInput) flavor. This is the strict 10-slot one. Choose it when you're building a workflow you'll keep or share and you want the graph to refuse wrong wires - the tradeoff being that every slot demands a connection, even if you just want an empty string in that position.

    Joining logic across the family is identical and friendly: only non-empty strings are joined, so empty slots never leave stray delimiters, and a delimiter of "\n" becomes a real newline for multi-line output.

    The ordering quirk, again

    Same caveat as the other Large version, and it's worth repeating because it's the one real trap: slots are joined in sorted key order, and lexicographic sorting puts string_10 between string_1 and string_2. Fill slots 1 through 10 and your assembly order isn't the visual left-to-right order - string_10 merges second. If your prompt order matters (and it usually does), either stay in the 5-slot range or account for the shuffle.

    Inputs and outputs

    • string_1 through string_10 (STRING, optional, forceInput) - ten typed text inputs.
    • Delimiter (STRING, default ", ") - the joiner.
    • Output string (STRING) - the merged result.

    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

    README says the pack is no longer maintained, superseded by ComfyUI_Eclipse (same author). v2 nodes still work.

    Two things to keep in mind: the forceInput slots can't be typed into - each needs a connected wire (an empty STRING node works as a skip), and the lexicographic ordering quirk above applies to slots beyond the first nine. If you mostly live in the first five slots, none of this will ever bother you.

    Category🫦 RvTools II/ Text

    Inputs (11)

    NameTypeDefaultDescription
    string_1optSTRING
    string_2optSTRING
    string_3optSTRING
    string_4optSTRING
    string_5optSTRING
    string_6optSTRING
    string_7optSTRING
    string_8optSTRING
    string_9optSTRING
    string_10optSTRING
    DelimiteroptSTRING,

    Outputs (1)

    NameTypeDescription
    stringSTRING