Data / Map data/map_keys

Map Keys & Values

Extracts all keys, all values, and the size of a Map.

Note: Pairs of keys[i] and values[i] correspond to the same entry. Use For Each on the keys list to iterate over all entries.

Inputs

NameTypeOptionalDescription
map any The Map to decompose.

Outputs

NameTypeDescription
keys list List of all keys (strings), in insertion order.
values list List of all values, in key order.
size number Number of entries.

Examples

Iterate over all map entries

Print every key-value pair in a map.

  1. Map Keys & Values → keys → For Each
  2. For Each → item (key) → Map Get (retrieve corresponding value)
  3. Player Message with formatted key+value