List.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( "List.XOr"; List1; List2 { ; NoReturnEnding } ) 

**MBS**( **"List.XOr"** /\* Returns list with values found in either first or second list, but not in both. \*/  
**$List1**; /\* The first list. e.g. "Hello" ¶ "World" \*/   
**$List2**; /\* The second list. e.g. "Hello" ¶ "Friends" \*/   
**$NoReturnEnding**) /\* Optional; Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List1 | The first list. | "Hello" ¶ "World" |  |
| List2 | The second list. | "Hello" ¶ "Friends" |  |
| NoReturnEnding | Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. | 1 | Optional |

### Result

Returns list or error.

### Description

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

Perform logical XOR on list:

 MBS ( "List.XOr"; "1¶2¶3¶4"; "3¶4¶5¶6" )  
### See also

- [List.MatchesPostfix](ListMatchesPostfix.md)
- [List.Or](ListOr.md)
- [List.XOrColumn](ListXOrColumn.md)
- [QuickList.XOr](QuickListXOr.md)
- [QuickList.XOrColumn](QuickListXOrColumn.md)

### Release notes

- **Version 10.0**
    - Added [List.AndColumn](https://www.mbsplugins.eu/ListAndColumn.shtml), [List.NotColumn](https://www.mbsplugins.eu/ListNotColumn.shtml), [List.OrColumn](https://www.mbsplugins.eu/ListOrColumn.shtml), and [List.XOrColumn](https://www.mbsplugins.eu/ListXOrColumn.shtml) functions.
    - 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

- [MBS Filemaker Plugin, version 4.4pr3](https://www.mbsplugins.de/archive/2014-10-01/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th September 2014 , last changed 25th September 2014

  
[List.ValueIndex](ListValueIndex.md) - [List.XOrColumn](ListXOrColumn.md)

[HTML Version](ListXOr.shtml)