Nodes/ComfyUI Layer Style/LayerUtility: TextJoinV2
ComfyUI Node Runs on cloud

LayerUtility: TextJoinV2

TextJoinV2 — glue up to four strings together with a delimiter

By chflame163·Created 3 years ago·Updated 4 days ago· 3,113
LayerUtility: TextJoinV2
    • text
    â—„text_1â–º
    â—„delimiter,â–º
    â—„text_2â–º
    â—„text_3â–º
    â—„text_4â–º

    A tiny string-concatenation node. It takes up to four text inputs and joins them with a delimiter you choose. That's the whole job, and it's more useful than it sounds - building prompts from reusable parts, assembling filenames, stitching together a subject plus a style plus quality tags without hard-coding one giant string in a single box.

    The reason to use it over just typing everything into one text field is composability. Keep your subject, your style block, and your quality suffix as separate nodes (or wire them from elsewhere), and let TextJoin assemble the final string at runtime. Change one part without retyping the rest.

    How it works

    It concatenates the text inputs you've filled, placing your delimiter between them. Fill only the parts you need - the later text slots are optional - and it joins what's there. Set the delimiter to a comma for prompt tags, a space for a sentence, or something like | for filenames.

    The inputs and outputs that matter

    • text_1 (required) - the first piece.
    • delimiter (default ,) - what goes between the parts. Comma for prompt tags, space for prose, or whatever separator your downstream node expects.
    • text_2, text_3, text_4 (optional) - the remaining pieces, joined in order when present.

    Output is a single text string. Note these are single-line inputs, so it's built for tags and short fragments rather than multi-paragraph text.

    How to install it

    Part of the LayerStyle pack. Via ComfyUI Manager: search LayerStyle, install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/chflame163/ComfyUI_LayerStyle
    pip install -r ComfyUI_LayerStyle/requirements.txt
    

    then restart. Find it under 😺dzNodes → LayerUtility → Data. No model download.

    Common issues & troubleshooting

    Double commas or stray delimiters in the output. Watch for empty slots and trailing punctuation - if a piece you wired in is blank, or already ends in the delimiter, you can end up with ,, in the joined string. Some samplers don't care, but clean it up if it bothers you.

    No space after your commas. The delimiter is literal. If you want tag1, tag2 with a space, set the delimiter to , (comma-space), not just ,.

    You need multi-line text. These inputs are single-line by design. For long-form or multi-paragraph assembly, this isn't the tool - use a proper multiline text node instead, then feed its result in here as one of the slots if you still want to append a suffix.

    Only the first part comes through. text_1 is the only required slot; the others are optional and only join when filled. If your later inputs aren't appearing, confirm they're actually wired or typed in, not left blank.

    Node isn't in the menu. The LayerStyle pack failed to import - usually a broken transformers dependency (a stray TensorFlow is the classic) crashing the whole pack on load, so every node in it disappears. This little node needs none of that itself. Read the traceback, use "Try Fix" in Manager, or repair the library.

    Category😺dzNodes/LayerUtility/Data

    Inputs (5)

    NameTypeDefaultDescription
    text_1STRING—
    delimiterSTRING,—
    text_2optSTRING—
    text_3optSTRING—
    text_4optSTRING—

    Outputs (1)

    NameTypeDescription
    textSTRING—