Skip to main content

Get

Read the value for a key, or a default when the key is missing.

Command in the Dictionary toolkit · id ooa.dictionary/get · 5 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
DictionaryDictionaryYesSource dictionary.
KeyStringYesKey whose value to read (case-sensitive).
DefaultAnyNoValue to return when the key is missing.
Ignore caseBooleanNofalseFind the key without regard to upper/lower case.
Fail if missingBooleanNofalseFail with DICT.KEY_NOT_FOUND instead of returning the default.

Outputs​

OutputTypeWhat it is
valueAnyValue or default.
foundBooleanTrue when the key exists.