Workshop.codes
Create

Array Difference Last updated June 18, 2025

Description

Returns an array containing all elements from the first array that do not appear in the second array. The order of remaining elements is preserved. Useful for computing exclusion sets, identifying players not in a group, or subtracting one filtered list from another.

Snippet

Array Difference(All Players(All Teams), Global.EliminatedPlayers);

Properties

Returns: Array
Parameters: Array A, Array B

Array A
Type: Array, Default: Empty Array
The source array whose elements will be filtered.

Array B
Type: Array, Default: Empty Array
The array of values to exclude from Array A.

Workshop.codes