-
Notifications
You must be signed in to change notification settings - Fork 2
Text Node
kleer001 edited this page Feb 6, 2025
·
1 revision
A versatile node for manipulating text strings with advanced list support. Takes a list of strings as input and either appends or prepends text based on parameters. Supports both plain text and Python-style list syntax for flexible text processing.
The text to process. Accepts both plain string and list syntax.
- When True: Processes input data
- When False: Uses only
text_string
- When True: Applies each text string to every input item
- When False: Concatenates lists of strings
- When True: Adds text before input
- When False: Adds text after input
- Plain string:
"hello"→ creates["hello"] - List syntax:
["first", "second"]→ creates["first", "second"]
- Uses Python-style list notation with square brackets
- Supports both single (') and double (") quotes
- Allows mixed quote types:
["first", 'second'] - Handles escaped quotes:
["escaped\"quote"] - Preserves empty strings:
["", "test", ""] - Empty list
[]creates[""] - Falls back to plain string treatment for invalid syntax
- Input: List[str]
- Output: List[str]