The string operators are provided to enable you to manipulate strings in your scripts. The string operators are displayed when you open the String operators folder in the Commands list box of the Add Script Field or Update Script Field dialogs, as shown in the following image.
The string operators are listed in the following table.
Operator | Purpose | Enables you to… |
---|---|---|
& | Concatenation | Combine strings sequentially |
[n] | "n"th character | Access a specified character within the string |
[n:length] | "n" for length | Access a piece of the string from a specified position and for a specified length |
[n:end] | "n" to end | Access a piece of the string from a specified position and to the end of the string |