ComfyUI Node Runs on cloud

Text List

Bundle multiple strings into one list output

By WASasquatch·Created 4 years ago·Updated a day ago· 1,859
Text List
    • ARRAY
    ◄text_a—►
    ◄text_b—►
    ◄text_c—►
    ◄text_d—►
    ◄text_e—►
    ◄text_f—►
    ◄text_g—►
    ◄text_h—►
    ◄text_i—►
    ◄text_j—►
    ◄text_k—►
    ◄text_l—►
    ◄text_m—►
    ◄text_n—►
    ◄text_o—►
    ◄text_p—►
    ◄text_q—►
    ◄text_r—►
    ◄text_s—►
    ◄text_t—►
    ◄text_u—►
    ◄text_v—►
    ◄text_w—►
    ◄text_x—►

    Text List does one simple thing: it bundles several separate text strings together into a single list output. Where Text String gives you one reusable value and Text Multiline gives you one block of multi-line text, Text List gives you several distinct entries as a collection - the right shape when a downstream node needs to iterate over multiple values rather than consume one.

    Why the distinction matters

    ComfyUI is picky about types, and "a list of strings" is a genuinely different shape from "one long string" even though both look like text. If you've got several prompt fragments, filenames, or labels you want treated as separate items - say, feeding into something that loops over each one, or into the suite's own Text Concatenate in its list-merging mode ("Merge lists of strings," distinct from the plain two-string Text Concatenate) - you need them arriving as an actual list, not as one string you'd have to split apart yourself downstream.

    Where you'd use it

    Anywhere you're assembling a small, fixed set of text values by hand and need them to travel together as discrete items - batch labels, a handful of style tags you want combined selectively later, or entries you're about to feed into list-aware operations elsewhere in the suite. It's a manual, hand-typed alternative to nodes like Load Text File, which reads a list of lines from disk instead - reach for Text List when you're defining a short set directly in the graph rather than maintaining it in an external file.

    Installing it

    Through ComfyUI Manager: search "WAS Node Suite", install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/WASasquatch/was-node-suite-comfyui
    cd was-node-suite-comfyui
    pip install -r requirements.txt
    

    Nothing extra to download - it's core text handling, no external dependency.

    Troubleshooting

    The main way this trips people up is exactly the type confusion described above: if a downstream node is complaining about receiving a list where it expected a single string (or vice versa), that mismatch is almost always at the boundary between Text List and whatever consumes it - check whether the receiving node actually wants a list-type input or a plain STRING before assuming either node is broken.

    The suite-wide caveat still applies here too: WAS Node Suite has had no active development since the author stepped back in December 2023, so if this node - or the whole pack - vanishes from your menu after a ComfyUI update, that's typically a whole-suite import failure over a stale pinned dependency (BLIP support being the recurring culprit) rather than this specific node breaking. Check your startup console before digging further.

    CategoryWAS Suite/Text/List

    Inputs (24)

    NameTypeDefaultDescription
    text_aoptSTRINGFirst entry of the LIST; STRING. Empty entries are skipped. Eg: a cinematic photograph
    text_boptSTRINGEntry 2; STRING. Empty is skipped.
    text_coptSTRINGEntry 3; STRING. Empty is skipped.
    text_doptSTRINGEntry 4; STRING. Empty is skipped.
    text_eoptSTRINGEntry 5; STRING. Empty is skipped.
    text_foptSTRINGEntry 6; STRING. Empty is skipped.
    text_goptSTRINGEntry 7; STRING. Empty is skipped.
    text_hoptSTRINGEntry 8 of the list; STRING. Empty is skipped.
    text_ioptSTRINGEntry 9 of the list; STRING. Empty is skipped.
    text_joptSTRINGEntry 10 of the list; STRING. Empty is skipped.
    text_koptSTRINGEntry 11 of the list; STRING. Empty is skipped.
    text_loptSTRINGEntry 12 of the list; STRING. Empty is skipped.
    text_moptSTRINGEntry 13 of the list; STRING. Empty is skipped.
    text_noptSTRINGEntry 14 of the list; STRING. Empty is skipped.
    text_ooptSTRINGEntry 15 of the list; STRING. Empty is skipped.
    text_poptSTRINGEntry 16 of the list; STRING. Empty is skipped.
    text_qoptSTRINGEntry 17 of the list; STRING. Empty is skipped.
    text_roptSTRINGEntry 18 of the list; STRING. Empty is skipped.
    text_soptSTRINGEntry 19 of the list; STRING. Empty is skipped.
    text_toptSTRINGEntry 20 of the list; STRING. Empty is skipped.
    text_uoptSTRINGEntry 21 of the list; STRING. Empty is skipped.
    text_voptSTRINGEntry 22 of the list; STRING. Empty is skipped.
    text_woptSTRINGEntry 23 of the list; STRING. Empty is skipped.
    text_xoptSTRINGEntry 24 of the list; STRING. Empty is skipped.

    Outputs (1)

    NameTypeDescription
    ARRAYARRAYThe texts that hold something, as one list, in socket order. Text List to Text turns it back into a string.