QuickList.XOr
-------------

Returns list with values found in either first or second list, but not in both.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [List](component_List.md) | [4.4](newinversion44.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "QuickList.XOr"; List1; List2 { ; ReturnNewList } ) 

**MBS**( **"QuickList.XOr";** /\* Returns list with values found in either first or second list, but not in both. \*/  
**$List1**; /\* The reference to the first quicklist. \*/   
**$List2**; /\* The reference to the second quicklist. \*/   
**$ReturnNewList**) /\* Optional; Pass 1 to return result as new QuickList.   
This new list must be freed later using [QuickList.Release](QuickListRelease.md) function. Pass 0 (Default) to modify the list in the List1 parameter.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List1 | The reference to the first quicklist. | $List1 |  |
| List2 | The reference to the second quicklist. | $List2 |  |
| ReturnNewList | Pass 1 to return result as new QuickList.    This new list must be freed later using [QuickList.Release](QuickListRelease.md) function. Pass 0 (Default) to modify the list in the List1 parameter. | 0 | Optional |

### Result

Returns list, OK or error.

### Description

Returns list with values found in either first or second list, but not in both.  
Performs an exclusive logical OR operation.  
### See also

- [QuickList.And](QuickListAnd.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.Not](QuickListNot.md)
- [QuickList.Or](QuickListOr.md)
- [QuickList.Pop](QuickListPop.md)
- [QuickList.Release](QuickListRelease.md)
- [QuickList.Sort](QuickListSort.md)
- [QuickList.XOrColumn](QuickListXOrColumn.md)

### Release notes

- **Version 10.0**
    - Added [QuickList.AndColumn](https://www.mbsplugins.eu/QuickListAndColumn.shtml), [QuickList.NotColumn](https://www.mbsplugins.eu/QuickListNotColumn.shtml), [QuickList.OrColumn](https://www.mbsplugins.eu/QuickListOrColumn.shtml), and [QuickList.XOrColumn](https://www.mbsplugins.eu/QuickListXOrColumn.shtml) functions.

### Blog Entries

- [QuickList.JSONArray vs. QuickList.JoinJSON](https://www.mbsplugins.de/archive/2024-08-09/QuickListJSONArray_vs_QuickLis/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.4pr5](https://www.mbsplugins.de/archive/2014-10-12/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th October 2014 , last changed 14th December 2023

  
[QuickList.ValueIndex](QuickListValueIndex.md) - [QuickList.XOrColumn](QuickListXOrColumn.md)

[HTML Version](QuickListXOr.shtml)