List.FindUnequals
-----------------

Finds unequal items in both lists.

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

MBS( "List.FindUnequals"; List1; List2 { ; NoReturnEnding; NotFromSecondList } ) 

**MBS**( **"List.FindUnequals";** /\* Finds unequal items in both lists. \*/  
**$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 \*/   
**$NotFromSecondList**) /\* Optional; Pass 1 to only returns items from first list not present in second list.  
Default is 0 to get items from both lists.e.g. 0 \*/ 

### 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 |
| NotFromSecondList | Pass 1 to only returns items from first list not present in second list.   Default is 0 to get items from both lists. | 0 | Optional |

### Result

Returns new list.

### Description

Finds unequal items in both lists.  
### Examples

Find non equal entries in both lists:

 MBS ( "List.FindUnequals"; "Hello¶World"; "Hello¶Friends"; 1 )  
<small>  
Example result:   
"World  
Friends"</small>Find items in first list which are not in second list:

 MBS ( "List.FindUnequals"; "Hello¶World"; "Hello¶Friends"; 1; 1 )  
<small>  
Example result: "World"</small>### See also

- [List.Find](ListFind.md)
- [List.FindEquals](ListFindEquals.md)
- [QuickList.FindUnequals](QuickListFindUnequals.md)

### Release notes

- **Version 7.3**
    - Added parameter for [QuickList.FindUnequals](http://www.mbsplugins.eu/QuickListFindUnequals.shtml) and [List.FindUnequals](http://www.mbsplugins.eu/ListFindUnequals.shtml) to only return items from first list.

### Example Databases

- [Mac and iOS/Contacts/ContactsChanged](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Contacts/ContactsChanged.shtml#2ScriptAnchor_)
- [Mac and iOS/Events/Events Changes](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Changes.shtml#3ScriptAnchor_)
- [Text functions/Lists](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/Lists.shtml#4ScriptAnchor_)

### Blog Entries

- [Combined Components with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-03-29/Combined_Components_with_MBS_F/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.3pr1](https://www.mbsplugins.de/archive/2017-06-05/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 11st August 2021

  
[List.FindEquals](ListFindEquals.md) - [List.GetColumn](ListGetColumn.md)

[HTML Version](ListFindUnequals.shtml)