Fix typo and more details to map_get function

This commit is contained in:
Harrissou Sant-anna 2021-03-08 12:33:14 +01:00 committed by GitHub
parent c3e31b0495
commit a9e05dca15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,10 @@
"name": "map_get",
"type": "function",
"groups": ["Maps"],
"description": "Returns the value of a map, given it's key.",
"description": "Returns the value of a map, given its key. Returns NULL if the key does not exist.",
"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' in the current print layout"}
{ "expression":"map_get( item_variables('Map 0'), 'map_scale')", "returns":"scale of the item 'Map 0' (if it exists) in the current print layout"}
]
}