StringSplitBy
Type
statement
Summary
Splits the string in Target into a list of strings, using Delimiter
as the delimiter.
Syntax
split <Target> by <Delimiter>
Description
Use the split command to convert a string representation of a list into a genuine (ordered) list.
Parameters
Name | Type | Description |
---|---|---|
Target | An expression that evaluates to a string container. | |
Delimiter | An expression that evaluates to a string. |
Examples
variable tVar as String
put "first,second,third,fourth,fifth" into tVar
variable tSplit as List
split tVar by "," into tSplit
put element 1 of tSplit into tFirstElement // tFirstElement contains "first"