Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dictionary.HasKeys
Checks if the given keys exist in dictionary.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dictionary | 14.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Dictionary.HasKeys"; DictionaryRef; Keys ) More
Parameters
Parameter | Description | Example |
---|---|---|
DictionaryRef | The reference number to the dictionary. | $dic |
Keys | The list of keys to use. Keys are case sensitive. Also keys must be text and should be single line. |
"FirstName" |
Result
Returns list or error.
Description
Checks if the given keys exist in dictionary.Like Dictionary.HasKey, but checking for a list.
Examples
Try the function:
Let([
list = MBS("Dictionary.Create"; "Hello"; 1; "World"; 2; "More"; 3);
found = MBS("Dictionary.HasKeys"; list; "World¶Other¶More");
r = MBS("Dictionary.Release"; list)
]; found)
See also
Release notes
- Version 14.2
- Added QuickList.HasValues and Dictionary.HasKeys functions.
Blog Entries
This function checks for a license.
Created 17th March 2024, last changed 19th March 2024