Substring (LogiX node)

From Neos Wiki
Revision as of 14:27, 12 June 2021 by Zyzyl (talk | contribs) (Move to LogiX:String category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Substring
noframe
Inputs
  String Str
  Int StartIndex
  Int Length
Outputs
  String *

Substring

Usage

Inputs

Str: The input string.

StartIndex: The zero-based starting character position of a substring in Str. Negative start indices are treated as if they were 0.

Length: The number of characters in the substring. If this input is not populated, the default is the length of Str. Negative lengths are treated as if they were 0.

Outputs

*: The substring of length Length that begins at StartIndex in Str. If StartIndex+Length exceeds the bounds of the input Str, the output is truncated to the end of Str.

Examples

SubstringExample.jpg

Node Menu

String
Back Characters Quick Format Special Characters + × Capitalize
Contains Ends With Format Get Type Index Of String Is String Empty New Line
Replace First Substring Replace Substring Reverse String Starts With String Insert String Join String Length
String Remove Substring To Lower To String To Upper Trim String