get key(s) from map()
This function creates a comma-separated list of the keys contained in map a. The keys will be sorted alphabetically in a case-insensitive way.
A separator between the keys can be specified in b.
Optionally, you can return a key at position c instead of the whole list.
Parameters
Parameter |
Description |
a |
(optional) Name of the map. Default: "default". |
b |
(optional) Separator between keys. Default: ",". |
c |
(optional) Position in the key list that should be returned (starts at "1"). Use -"1" for the iteration level. |
Examples
Given is a map "myMap" containing the key-value pairs {1key=val1, Key1=val2, key2=val3}.
Parameter a |
Parameter b |
Parameter c |
Result |
myMap |
|
|
1key,Key1,key2 |
myMap |
|
2 |
Key1 |
myMap |
# |
|
1key#Key1#key2 |
myOtherMap |
|
|
|