strInsert

Inserts a string at a specified position. Takes str (original string), insertStr (string to insert), position (1-based insertion position). Returns a new string with insertStr inserted at the specified position.

String

Parameters & Returns

Parameters

str String
insertStr String
position Int

Returns

String

Quick Summary

Inserts a string at a specified position. Takes str (original string), insertStr (string to insert), position (1-based insertion position). Returns a new string with insertStr inserted at the specified position.

Technical Exegesis...

Returns a new string with insertStr inserted at the specified position. Uses 1-based indexing: position 1 is before the first character.

If position is less than 1, inserts at the beginning. If position is beyond the string length, inserts at the end. Useful for building strings dynamically or injecting content at specific locations.

Example

Example.bam
; No example implemented yet