Nodes/Mikey Nodes/Text Combinations 2 (Mikey)
ComfyUI Node

Text Combinations 2 (Mikey)

Text Combinations 2 (Mikey) — ComfyUI Node

By bash-j·Created 3 years ago·Updated 10 months ago· 188
Text Combinations 2 (Mikey)
    • output1
    • output2
    text1Text 1
    text2Text 2
    operationtext1 to output1, text1 to output2
    delimiter
    use_seedfalse
    seed0

    Displayed in ComfyUI as "Text Combinations 2" but the class name is just TextCombinations - don't let that throw you when you're searching for it. This node takes two text fields and routes them (or a combination of them) to two outputs, based on a dropdown of every possible arrangement rather than you building it out of separate concat nodes.

    The mechanism

    You've got text1 and text2 as inputs, and two outputs, output1 and output2. Each output can independently be: just text1, just text2, or text1 joined to text2 with your chosen delimiter. That's 3 possibilities per output, 2 outputs, so the operation dropdown gives you all 9 combinations spelled out in plain English - "text1 to output1, text2 to output2," "text1 to output1, text1 + text2 to output2," and so on through every pairing. You're not writing logic, you're just picking the row you want from the list.

    This is genuinely useful when you're building a prompt that needs to feed two different downstream consumers differently - say, a short tag-style summary going to one path and a full combined description going to another - and you want to be able to switch which arrangement is active with one dropdown instead of rewiring nodes every time you change your mind.

    use_seed and seed let you randomize which row of the operation dropdown is active instead of locking it to one choice - handy if you're batch-generating and want variety in how your two text fields get recombined run to run, without hand-picking a different operation each time.

    Inputs and outputs that matter

    • text1, text2 - your two source strings, multiline, defaulting to placeholder text.
    • operation - the dropdown of 9 arrangements described above; default sends text1 to both outputs.
    • delimiter - what gets inserted between text1 and text2 on any "combined" output; a single space by default.
    • use_seed / seed - turn on random operation selection.

    Outputs are just output1 and output2, both plain strings, ready to feed into CLIP Text Encode nodes, filename prefixes, or further text-processing nodes in this same pack.

    Installing it

    Search "Mikey Nodes" in ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bash-j/mikey_nodes
    

    Restart ComfyUI afterward. No models or extra dependencies needed - it's plain string logic.

    Common trip-ups

    If you flip use_seed on and get confused why your carefully-chosen operation stopped applying, that's expected - random selection overrides the dropdown while it's active. Turn use_seed back off to lock in a specific arrangement again.

    If you need three text fields instead of two, this node caps out at two - reach for TextCombinations3 in the same pack instead of trying to chain two of these together (it'll technically work, but the three-input version gives you the full combined-arrangement matrix in one node rather than two nested ones).

    CategoryMikey/Text

    Inputs (6)

    NameTypeDefaultDescription
    text1STRINGText 1
    text2STRINGText 2
    operationCOMBOtext1 to output1, text1 to output29 options: text1 to output1, text1 to output2, text1 to output1, text2 to output2, text1 to output1, text1 + text2 to output2, text2 to output1, text1 to output2, text2 to output1, text2 to output2, text2 to output1, text1 + text2 to output2, +3
    delimiterSTRING
    use_seedCOMBOfalse2 options: true, false
    seedINT00–18446744073709550000

    Outputs (2)

    NameTypeDescription
    output1STRING
    output2STRING