Skip to content

Substring

123

The Substring node is a precision extraction tool. It allows you to "cut" a specific piece out of a longer string by defining the starting point and the number of characters you want to keep.

When to use this node: * Data Truncation: Shortening a long message for a small display, such as showing only the first 10 characters of a status update. * Code Parsing: Extracting specific parts of a complex code. For example, if players find a serial number "SN-8829", you can use this node to extract just the numeric part "8829". * Dynamic Clues: Revealing parts of a secret word letter-by-letter as players progress through different game states.

Technical Note: Indexing starts from zero, meaning the very first character of a string is at start position 0.

Connectors in

  • S [type: string]
  • start [type: integer]
  • length [type: integer]

Connectors out

  • result [type: string]

Node properties

  • length [type: integer]
  • S [type: string]
  • start [type: integer]