List.HasDuplicateItems
----------------------

Checks if list has duplicates.

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

MBS( "List.HasDuplicateItems"; List { ; CaseInsensitive } ) 

**MBS**( **"List.HasDuplicateItems";** /\* Checks if list has duplicates. \*/  
**$List**; /\* The list to process.e.g. "Hello" ¶ "Hello" ¶ "World" \*/   
**$CaseInsensitive**) /\* Optional; Whether to perform comparison case insensitve.  
By default we do case sensitive operations, which are faster.  
Pass 1 for insensitve or 0 for sensitive.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List | The list to process. | "Hello" ¶ "Hello" ¶ "World" |  |
| CaseInsensitive | Whether to perform comparison case insensitve.   By default we do case sensitive operations, which are faster.   Pass 1 for insensitve or 0 for sensitive. | 0 | Optional      Added in version **14.0**. |

### Result

Returns 1, 0 or error.

### Description

Checks if list has duplicates.  
Returns 1 if duplicate lines are found or 0 if not.  
### Examples

Try it:

 MBS ( "List.HasDuplicateItems"; "Hello¶Test¶World¶Test" )  
<small>  
Example result: 1</small>Try with case sensitive and case insenstive:

 MBS ( "List.HasDuplicateItems"; "a¶A"; 0) &amp; MBS ( "List.HasDuplicateItems"; "a¶A"; 1)  
<small>  
Example result: 01</small>### See also

- [List.FindDuplicateItems](ListFindDuplicateItems.md)
- [List.RemoveDuplicateItems](ListRemoveDuplicateItems.md)
- [QuickList.HasDuplicateItems](QuickListHasDuplicateItems.md)

### Release notes

- **Version 14.0**
    - Added CaseSensitive flag for [List.FindDuplicateItems](https://www.mbsplugins.eu/ListFindDuplicateItems.shtml), [List.HasDuplicateItems](https://www.mbsplugins.eu/ListHasDuplicateItems.shtml), [List.RemoveDuplicateItems](https://www.mbsplugins.eu/ListRemoveDuplicateItems.shtml), [QuickList.FindDuplicateItems](https://www.mbsplugins.eu/QuickListFindDuplicateItems.shtml), [QuickList.HasDuplicateItems](https://www.mbsplugins.eu/QuickListHasDuplicateItems.shtml), [QuickList.RemoveDuplicateItems](https://www.mbsplugins.eu/QuickListRemoveDuplicateItems.shtml).
- **Version 7.5**
    - Added [List.HasDuplicateItems](http://www.mbsplugins.eu/ListHasDuplicateItems.shtml) and [QuickList.HasDuplicateItems](http://www.mbsplugins.eu/QuickListHasDuplicateItems.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 13.6pr3](https://www.mbsplugins.de/archive/2023-12-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.5pr3](https://www.mbsplugins.de/archive/2017-10-23/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st October 2017 , last changed 10th December 2023

  
[List.GetValue](ListGetValue.md) - [List.HasValue](ListHasValue.md)

[HTML Version](ListHasDuplicateItems.shtml)