Skip to content

InsertStringAt

mapping category: string no `||`

Inserts a static string at a given position in a string input.

Inserts the static string into the input at the specified position. If the position is past the end of the input string, nothing is inserted.

Parameters

1position Mandatory — accepts: INT

Zero-based offset where the static string is inserted. If past the end of the input, nothing is inserted.

2text Mandatory — accepts: STRING

The static string to insert.

Input type

  • STRING

Output type

  • STRING

Examples

Insert at position 5

InsertStringAt(5, "Inserted text")

See also

PrePad, PostPad, SubString, Concat