Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Text Node

kleer001 edited this page Feb 6, 2025 · 1 revision

Text Node

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.

Parameters

text_string (str)

The text to process. Accepts both plain string and list syntax.

pass_through (bool)

  • When True: Processes input data
  • When False: Uses only text_string

per_item (bool)

  • When True: Applies each text string to every input item
  • When False: Concatenates lists of strings

prefix (bool)

  • When True: Adds text before input
  • When False: Adds text after input

List Syntax Support

Basic Syntax

  • Plain string: "hello" → creates ["hello"]
  • List syntax: ["first", "second"] → creates ["first", "second"]

Advanced Features

  • 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/Output

  • Input: List[str]
  • Output: List[str]

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /