ListItemTrim
Trims each item in the list.
Method Signature
ListItemTrim(list=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean])Arguments
Argument
Type
Required
Description
Default
list
string
true
string list to trim each item
delimiter
string
false
string the list delimiter
,
includeEmptyFields
boolean
false
boolean whether to include empty fields in the returned result
false
multiCharacterDelimiter
boolean
false
false
Examples
Simple Example
Trims each item in the list.
exampleList = "hello, world ,this, is a, ,example";
writeOutput( listItemTrim( examplelist ) );
Result: hello,world,this,is a,,example
Using as member function
Trims each item in the list.
Result: hello,world,this,is a,,example
Keep empty items in the list
Trims each item in the list and keep empty items.
Result: hello,world,this,is a,,,example
Additional Examples
Related
Last updated
Was this helpful?
