ComfyUI Node

XStringWrap

Wrap text with prefix/suffix separators using a simple apply mode

By Xz3r0-M·Created 7 months ago·Updated 22 days ago· 11
XStringWrap
    • wrapped_text
    enabledtrue
    apply_modeboth
    prefix_separatornone
    text
    suffix_separatornone
    Category♾️ Xz3r0/Workflow-Processing

    Inputs (5)

    NameTypeDefaultDescription
    enabledBOOLEANtrueEnable output; if disabled, output is empty
    apply_modeCOMBObothSeparator apply mode (both: prefix+suffix, prefix_only: only prefix, suffix_only: only suffix)
    prefix_separatorCOMBOnonePrefix separator before text (none: '', newline: \n, space: ' ', comma: ',', comma_space: ', ', period: '.', period_space: '. ')
    textSTRINGMain text to wrap
    suffix_separatorCOMBOnoneSuffix separator after text (none: '', newline: \n, space: ' ', comma: ',', comma_space: ', ', period: '.', period_space: '. ')

    Outputs (1)

    NameTypeDescription
    wrapped_textSTRINGWrapped string output