Workshop.codes
Create

Array Contains Duplicates Last updated January 09, 2025

Description

Returns True if a specified array contains any two elements that are equal in value. Returns False if all elements are unique or the array has fewer than two elements. Useful for validating uniqueness in player assignment arrays, random draws, or configuration sets.

Snippet

Array Contains Duplicates(Global.AssignedRoles);

Properties

Returns: Boolean
Parameters: Array

Array
Type: Array, Default: Empty Array
The array to check for duplicate values.

Workshop.codes