ListRemoveDuplicates

Removes duplicate values from list.

Returns: string

Usage

ListRemoveDuplicates( list [, delimiters [, ignoreCase ] ] )

Arguments

Argument Description Default
list
(string, required)

a string list

delimiters
(string, optional)

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

,

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