Zoomed Image

AMSX Scripting Language - Command : splitstring

Summary

Split a string by a delimiter and return the element at a given position

Description

Splits the input string by the specified single-character delimiter and returns the element at the given 1-based position. The result is stored in the result buffer. Returns an empty string if the position is out of range.

Parameters

ParameterDescription
cmdString to split
Argument 0Single character delimiter to split on
Argument 11-based position of the element to return

Syntax


SplitString "String to split", "Single character delimiter to split on", "1-based position of the element to return"

Return to the AMSX Command Reference