Substring (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
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 Compare Strings Contains Empty String
Ends With Escape String Format Get Type Index Of String Is String Empty New Line
Null String Replace First Substring Replace Substring Reverse String Starts With String Insert String Join
String Length String Remove Strip RTF Tags Substring To Lower To String To Upper
Trim String Unescape String