2016-09-12 10:30:05 +02:00
|
|
|
{
|
|
|
|
"name": "map_get",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Maps"],
|
2021-03-08 12:33:14 +01:00
|
|
|
"description": "Returns the value of a map, given its key. Returns NULL if the key does not exist.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "map",
|
|
|
|
"description": "a map"
|
|
|
|
}, {
|
|
|
|
"arg": "key",
|
|
|
|
"description": "the key to lookup"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "map_get(map('1','one','2','two'),'2')",
|
|
|
|
"returns": "'two'"
|
|
|
|
}, {
|
|
|
|
"expression": "map_get( item_variables('Map 0'), 'map_scale')",
|
|
|
|
"returns": "scale of the item 'Map 0' (if it exists) in the current print layout"
|
|
|
|
}],
|
2022-01-11 11:25:21 -05:00
|
|
|
"tags": ["map", "exists", "key"]
|
2016-09-12 10:30:05 +02:00
|
|
|
}
|