Scripting > UNICOM Intelligence Function Library > Categorical functions > Unique
 
Unique
Returns a category list with any duplicate categories removed.
Syntax
Unique(Val)
Parameter
Val
Type: Categorical
Categorical value.
(return)
Type: Categorical
The categories in Val, but with any duplicates removed.
Remarks
If the current value is NULL, Val is an empty Categorical value ({}) and the return value is also an empty Categorical value.
Note that Val cannot consist of a category expression.
Examples
Function call
Q1
Result
Q1.Unique()
{5,1,6,4,3,5,2,4}
{5,1,6,4,3,2}
Unique(Q1)
{3,1,2}
{3,1,2}
See also
Categorical functions