Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 647 Bytes

File metadata and controls

26 lines (19 loc) · 647 Bytes
page_title description
lookup - Functions - Configuration Language
The lookup function retrieves an element value from a map given its key.

lookup Function

lookup retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.

lookup(map, key, default)

Examples

> lookup({a="ay", b="bee"}, "a", "what?")
ay
> lookup({a="ay", b="bee"}, "c", "what?")
what?

Related Functions

  • element retrieves a value from a list given its index.