Nodes/ComfyUI Text-Driven Workflows/Prompt Line (Text-Driven)
ComfyUI Node

Prompt Line (Text-Driven)

Extracts specific lines from a multi-line text to output as a list of strings for batch processing. If 'loops' is true, it wraps around to the beginning when max_rows exceeds available lines.

By kanryu·Created 3 months ago·Updated 3 months ago· 0
Prompt Line (Text-Driven)
    • string_out
    prompt
    start_index0
    max_rows1000
    remove_empty_linestrue
    loopsfalse
    CategoryText-Driven Workflows

    Inputs (5)

    NameTypeDefaultDescription
    promptSTRING
    start_indexINT00–9999
    max_rowsINT10001–9999
    remove_empty_linesBOOLEANtrue
    loopsBOOLEANfalse

    Outputs (1)

    NameTypeDescription
    string_outSTRING