Skip to main content

DictionaryCheckKey

The DictionaryCheckKey function determines whether the Dictionary contains the specified key.

Prototype

DictionaryCheckKey(Dictionary ; Key;)

Arguments


Dictionary Dictionary By value

Argument contains the dictionary.

Key String By value

Valid string used to qualify the key associated to the value.

Returns

Boolean
True, if the Dictionary contains an item with the specified key; otherwise, it returns false.

Exception

Undefined

Undefined is returned if the Dictionary parameter is not of type SFHub dictionary or if the key is not a valid string.

Example 

DictionaryCheckKey($$myDictionary; 'Key1')

Will return true if the key 'Key1' exists in $$myDictionary.