XOR, or “exclusive or”, takes two input lists and generates a new list that contains all of the items that are in one or the other input list but not both. The lists can be of any type (text, number, object, etc.) as long as both input lists and the output list are set to the same type.
- list1: The first list of items.
- list2: The second list of items.
- list: The output list, containing just those items that are in list1 or list2 but not both.