QuickList.HasValues
-------------------

Checks whether a list contains the given values.

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

MBS( "QuickList.HasValues"; ListRef; Values ) 

**MBS**( **"QuickList.HasValues";** /\* Checks whether a list contains the given values. \*/  
**$ListRef**; /\* The reference to the list returned from [QuickList.New](QuickListNew.md) function.e.g. $List \*/   
**$Values**) /\* The values to check.e.g. "Hello¶World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ListRef | The reference to the list returned from [QuickList.New](QuickListNew.md) function. | $List |
| Values | The values to check. | "Hello¶World" |

### Result

Returns list or error.

### Description

Checks whether a list contains the given values.  
Returns the list of matching values.  
Text comparison is case sensitive.  
Like [QuickList.HasValue](QuickListHasValue.md), but checking for a list.  
### Examples

Check if a list has values:

 Let(\[  
 list = MBS ("[QuickList.New](QuickListNew.md)"; "Hello¶World¶123");  
 found = MBS ("QuickList.HasValues"; list; "World¶Other¶123");  
 r = MBS ("[QuickList.Release](QuickListRelease.md)"; list)  
\]; found)  
### See also

- [List.HasValue](ListHasValue.md)
- [QuickList.AddValue](QuickListAddValue.md)
- [QuickList.GetValue](QuickListGetValue.md)
- [QuickList.HasValue](QuickListHasValue.md)
- [QuickList.New](QuickListNew.md)
- [QuickList.Release](QuickListRelease.md)
- [QuickList.SetValue](QuickListSetValue.md)

### Release notes

- **Version 14.2**
    - Added [QuickList.HasValues](https://www.mbsplugins.eu/QuickListHasValues.shtml) and [Dictionary.HasKeys](https://www.mbsplugins.eu/DictionaryHasKeys.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 14.2](https://www.mbsplugins.de/archive/2024-05-21/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.2pr1](https://www.mbsplugins.de/archive/2024-04-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th March 2024 , last changed 5th July 2024

  
[QuickList.HasValue](QuickListHasValue.md) - [QuickList.IndexOfFirstValueMatching](QuickListIndexOfFirstValueMatching.md)

[HTML Version](QuickListHasValues.shtml)