Tinderbox v10 Icon

Dictionary.contains(keyStr)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Query Boolean  [other Query Boolean operators]

 boolean test

 v9.0.0

 Baseline

 As at baseline


Dictionary.contains(keyStr)

The expression:

$MyDictionary.contains(key) 

is true if the dictionary contains the designated key.

Note that keyStr is literal string and not a regex pattern (unlike the operator's use chained with some other data types).

Dictionaries are case-sensitive, but Dictionary.icontains(key) is available for case-insensitive matching.


See also—notes linking to here: