Skip to main content

List Unique

Runs on: Shared (backend or chatbox overlay).

Removes duplicates from a list, keeping the first occurrence of each and the original order. The original list is not modified.

For lists of plain strings, numbers or booleans, whole values are compared. For lists of custom or built-in objects, whole objects are compared by content (key order doesn't matter), or pick a Field to dedupe by, such as one entry per username even if the same viewer appears with different data.

Inputs​

NameTypeDescription
listlistThe list to deduplicate.
fieldstringWire this to choose the field at runtime instead of in the node.

Outputs​

NameTypeDescription
resultlistThe deduplicated list, in original order, with the same item type as the input.

Configuration​

  • Case Sensitive: Text comparisons only. Off on new nodes.
  • Field: The field that identifies a duplicate in lists of objects. Whole Item compares entire objects.

Example​

A raid history list can contain the same raider more than once. Set Field to raiderUsername to get one entry per raider before showing a "thanks to our raiders" list.