ComfyUI Node

Prompt Line

Split a multi-line text into one row per line and output it as a list: STRING (list of strings) and COMBO (list of options) carry the same rows. 'remove_empty_lines' drops blank and whitespace-only rows, 'start_index' and 'max_rows' pick where to start and how many rows to take. The 'fill from combo link' button on the canvas copies every option of the dropdown wired downstream into the text box. Same behaviour as Easy-Use's prompt line.

By live1617·Created about a month ago·Updated a day ago· 4
Prompt Line
    • STRING
    • COMBO
    ◄prompttext►
    ◄start_index0►
    ◄max_rows1000►
    ◄remove_empty_linestrue►
    CategoryQG-tools/Text

    Inputs (4)

    NameTypeDefaultDescription
    promptSTRINGtextMulti-line text, one prompt per line; the output is the list of rows.
    start_indexINT00–9999Which row to start from (0 is the first). Past the last row it falls back to that last row.
    max_rowsINT10001–9999How many rows to take at most; fewer are returned when the text runs out.
    remove_empty_linesBOOLEANtrueDrop blank and whitespace-only rows before the start index / max rows slice is applied.

    Outputs (2)

    NameTypeDescription
    STRINGSTRINGEvery selected row as a list of strings.
    COMBOCOMBOThe same rows, typed as options so the slot can drive a combo input.