ComfyUI Node

FETextCombine

Stitch several text inputs into one string

By fexli·Created 3 years ago·Updated about a year ago· 3
FETextCombine
    • output
    input

    Prompts aren't born whole. They're assembled - a subject here, a style token there, a quality suffix you reuse everywhere - and once you start reusing the same fragments across workflows, you want a node that concatenates them into one string. FETextCombine is that node: a string combiner that takes one or more text inputs and joins them end-to-end.

    The design is refreshingly open-ended. It declares a single optional input of type STRING, but it's marked forceInput, and the node's VALIDATE_INPUTS always returns true - which in ComfyUI's terms means the node quietly accepts any number of connected string inputs, not just one. Wire in a subject, a style, a negative-prompt fragment, and the output is them concatenated in connection order.

    Inputs and output

    • input (optional, STRING) - the fragment(s) to join. You can convert the widget to input and chain multiple.
    • Output: output, the concatenated STRING.

    A couple of behavior details from the source: an input literally equal to the string undefined is treated as empty, empty strings are dropped from the join, and everything is joined with no separator - "a" + "b" becomes "ab". That last point is the one to remember: it doesn't insert commas or spaces for you. If you're building a tag-style prompt, wire the commas in yourself or put them at the end of each fragment.

    How it compares

    Honestly, string combine is one of the most over-solved problems in the ecosystem - every utility pack has one, and the built-in ecosystem is full of them (rgthree, WAS, the various "text concat" nodes, all do this). FETextCombine isn't going to dethrone any of them. What it does is sit in this pack, next to FETextInput and FETextCombine2Any, so if you're already using fexli's random prompt node or its LoRA stack, having the join step in the same pack keeps your graph dependency footprint small. The 2Any sibling is the same idea but accepts any-typed inputs (so you can stringify numbers and booleans into the prompt); this one is the text-only, no-surprises version.

    Install

    From fexli-util-node-comfyui:

    cd ComfyUI/custom_nodes
    git clone https://github.com/fexli/fexli-util-node-comfyui
    cd fexli-util-node-comfyui
    pip install -r requirements.txt
    

    Or ComfyUI Manager → search fexli-util-node-comfyui → install → restart. No config.yaml needed.

    It's a small, honest utility. If you're building modular prompts - especially as part of a batch-variation setup where random fragments get combined per-run - it earns its place. Just don't expect it to add the commas.

    Categoryfexli/utils

    Inputs (1)

    NameTypeDefaultDescription
    inputoptSTRING

    Outputs (1)

    NameTypeDescription
    outputSTRING