count unique values
This block is part of the array group and was last modified in core v10.4.28.
count unique values v10.4.28 Returns the number of unique items for the given array of values.
In pins 1
- Array required
arrayInput pin for the array of values for which you want to count unique items.
Out pins 1
- Number
numberOutput pin for the count of unique items in the array.
Counts distinct items by their TEXT representation, so values that print identically collapse into one (the number 1 and the string "1" count as a single distinct value). An empty, missing, or non-array input outputs 0.
count unique values outputs how many different values an array holds. The example array has two items but only one unique value, so the number out pin outputs 1. Handy for dedupe checks before further processing.

Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group
