ListRemoveDuplicates()

Removes duplicate values from list.

ListRemoveDuplicates( list=string, delimiters=string, ignoreCase=boolean );

Returns: String

Argument Description Default
list
string, required

a string list

delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

,

ignoreCase
boolean, optional

if set to true, the duplicate value test will not be case sensitive

false

Examples

lst = "cat,mouse,dog,cat,cow,goat,sheep,cat,dog";
writeoutput(lst);
writeoutput("<hr>");
// new list with duplicates removed
lst = ListRemoveDuplicates(lst);
writeoutput(lst);

See also