List.Intersection
-----------------

Returns a list with values which are contained in all lists.

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

MBS( "List.Intersection"; List1; Lists... ) 

**MBS**( **"List.Intersection";** /\* Returns a list with values which are contained in all lists. \*/  
**$List1**; /\* The first list.e.g. "Hello" ¶ "World" \*/   
**$Lists...**) /\* The second list or more lists.e.g. "Hello" ¶ "Friends" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| List1 | The first list. | "Hello" ¶ "World" |
| Lists... | The second list or more lists. | "Hello" ¶ "Friends" |

### Result

Returns list or error.

### Description

Returns a list with values which are contained in all lists.  
Performs a logical AND operation.  
Same as [List.And](ListAnd.md), but with variable number of arguments.  
The returned list ends with a newline character.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Lists parameter as often as you need.  
### Examples

Intersect three lists:

 MBS ("List.Intersection"; "A"; "B¶A"; "A¶C")  
<small>  
Example result: A</small>### See also

- [List.And](ListAnd.md)

### Release notes

- **Version 14.5**
    - Added [List.Intersection](https://www.mbsplugins.eu/ListIntersection.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin in Version 14.5](https://www.mbsplugins.de/archive/2025-01-08/New_in_MBS_FileMaker_Plugin_in/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 14.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2024-11-12/Neues_MBS_Plugin_145_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 14.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-11-12/MBS_FileMaker_Plugin_145_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.5pr4](https://www.mbsplugins.de/archive/2024-10-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 24th October 2024 , last changed 24th October 2024

  
[List.InsertValue](ListInsertValue.md) - [List.MapEntries](ListMapEntries.md)

[HTML Version](ListIntersection.shtml)