String Subset Function

Returns the substring of the input string beginning at offset and containing length number of characters.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cstr.png string

    string is the input string.

  • ci32.png offset (0)

    offset specifies number of characters into string at which the function starts searching for a match. offset must be numeric.

    The offset of the first character in string is 0. If offset is unwired or less than 0, the function takes offset as 0.
  • ci32.png length (rest)

    length must be numeric. If length is left unwired, the default is the length of string minus offset.

  • istr.png substring

    substring is empty if offset is greater than the length of the string or if the length is less than or equal to 0.

    If length is greater than or equal to the length of string minus offset, substring is the remainder of string beginning at offset.