ComfyUI Node
XStringWrap
Wrap text with prefix/suffix separators using a simple apply mode
XStringWrap
- wrapped_text
◄enabledtrue►
◄apply_modeboth►
◄prefix_separatornone►
◄text►
◄suffix_separatornone►
Category♾️ Xz3r0/Workflow-Processing
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| enabled | BOOLEAN | true | Enable output; if disabled, output is empty |
| apply_mode | COMBO | both | Separator apply mode (both: prefix+suffix, prefix_only: only prefix, suffix_only: only suffix) |
| prefix_separator | COMBO | none | Prefix separator before text (none: '', newline: \n, space: ' ', comma: ',', comma_space: ', ', period: '.', period_space: '. ') |
| text | STRING | Main text to wrap | |
| suffix_separator | COMBO | none | Suffix separator after text (none: '', newline: \n, space: ' ', comma: ',', comma_space: ', ', period: '.', period_space: '. ') |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| wrapped_text | STRING | Wrapped string output |