Nodes/ComfyUI-RvTools_v2/String Multiline with List
ComfyUI Node

String Multiline with List

Same text box, plus a list output you didn't know you needed

By r-vage·Created about a year ago·Updated 5 months ago· 23
String Multiline with List
    • string
    • string_list
    string

    String Multiline with List [RvTools] is the smarter sibling of the plain multiline text box. Same editable widget, but it returns two outputs: the string itself, and a list of the individual lines. One node, both representations, no second string-splitting node needed.

    Why you'd reach for it

    The single most common pattern in prompt-heavy ComfyUI graphs is "type several entries, then iterate over them" - a batch of wildcards, a list of subjects, a set of LoRA trigger words you want to loop through. Stock ComfyUI gives you a multiline string, but turning that into a list means adding a text-split node somewhere in the middle of your graph. This node collapses the step: the string_list output is ready to feed a list-iterating node or a STRING-list input directly.

    It's also just convenient for keeping one text source and branching - wire string to your CLIP Text Encode for the full prompt, and string_list to something that consumes per-line entries. Same single source of truth, two very different consumers.

    How it works

    The node strips the input, splits on newlines, and drops empty lines. Then:

    • string outputs the first non-empty line.
    • string_list outputs the full list of lines, tagged as a list (OUTPUT_IS_LIST), so it plugs into nodes expecting a list of strings.

    There's a small edge case worth knowing: a single line returns that line for both outputs, and empty input returns "" plus a list containing one empty string rather than crashing - handy when a prompt is optional and you don't want your whole graph to error out on a blank box.

    Input: string - multiline widget.

    Outputs: string (first line), string_list (all lines as a STRING list).

    Install

    Standard RvTools install:

    • ComfyUI Manager → search "RvTools" → install ComfyUI-RvTools_v2 → restart.
    • Or: cd ComfyUI/custom_nodes && git clone https://github.com/r-vage/ComfyUI-RvTools_v2, then restart.

    No models or downloads; the pack's shared dependencies (OpenCV, pilgram) install alongside it regardless.

    Gotchas

    Two things to keep in mind. First, because empty lines are filtered, you can't use blank lines as intentional separators - if you need "line 1, nothing, line 2" to survive, this node collapses that to two entries. Second, remember the pack situation: RvTools v2 is deprecated in favor of ComfyUI_Eclipse, and v1-era workflow names won't auto-map. For a utility this simple, the migration cost is nearly zero, but old saved graphs will still throw "missing node" until you swap in the v2 node.

    Category🫦 RvTools II/ Primitives

    Inputs (1)

    NameTypeDefaultDescription
    stringSTRING

    Outputs (2)

    NameTypeDescription
    stringSTRING
    string_listSTRING