List.MapEntries
---------------

Maps selection of keys from a key list to value list.

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

MBS( "List.MapEntries"; Keys; KeysSelected; Values { ; NoReturnEnding } ) 

**MBS**( **"List.MapEntries";** /\* Maps selection of keys from a key list to value list. \*/  
**$Keys**; /\* The list of keys. \*/   
**$KeysSelected**; /\* The keys you got from the list of keys. \*/   
**$Values**; /\* The list of values to query.  
Should have same size as keys list. \*/   
**$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 |
|---|---|---|---|
| Keys | The list of keys. |  |  |
| KeysSelected | The keys you got from the list of keys. |  |  |
| Values | The list of values to query.   Should have same size as keys list. |  |  |
| 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      Added in version **13.0**. |

### Result

Returns list or error.

### Description

Maps selection of keys from a key list to value list.  
Keys don't need to be unique.  
### Examples

Try it:

 MBS ( "List.MapEntries"; "1¶2¶3¶4"; "2¶4"; "Hello¶World¶Test¶Other" )  
<small>  
Example result:   
World  
Other</small>### Release notes

- **Version 11.3**
    - Added [List.MapEntries](https://www.mbsplugins.eu/ListMapEntries.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-27/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-12/Neues_MBS_FileMaker_Plugin_113/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-07-12/MBS_FileMaker_Plugin_113_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr2](https://www.mbsplugins.de/archive/2021-06-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 3th June 2021 , last changed 9th November 2022

  
[List.Intersection](ListIntersection.md) - [List.MatchesPostfix](ListMatchesPostfix.md)

[HTML Version](ListMapEntries.shtml)