get
.get dictionary:{Map<String, Any>} \
key:{String} \
orelse:{Dynamic = DynamicValue(NOT_FOUND)}
-> AnyContent copied to clipboard
Gets a value from a dictionary by its key.
.var {dict}
.dictionary
- a: 1
- b: 2
.dict::get {a}Content copied to clipboard
Return
value corresponding to the given key, or orelse if the key is not present
Parameters
dictionary
dictionary to get the value from
key
key to get the value of