Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  

Dictionary.Lookup

Looks up value for the key.

Component Version macOS Windows Linux Server iOS SDK License
Dictionary 12.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes Paid
MBS( "Dictionary.Lookup"; DictionaryRef; Key { ; DefaultValue } )   More

Parameters

Parameter Description Example Flags
DictionaryRef The reference number to the dictionary. $dic
Key The key to use. Keys are case sensitive. "FirstName"
DefaultValue The default value to return if key is not found.
Default for the default value is an empty string.
"" Optional

Result

Returns value or error.

Description

Looks up value for the key.
As dictionary preserves data type, result can be empty, text, number, date, time, timestamp, container or boolean.
Returns default value (or empty result), if key is not found.

Examples

Query UUID for something and make new one if it's not found:

MBS( "Dictionary.Lookup"; $IDDic; $id; Get(UUID) )

See also

Release notes

Blog Entries

Created 15th February 2022, last changed 15th February 2022


Dictionary.List - Dictionary.Release

Feedback: Report problem or ask question.


Start Chat