getAllMapNames
getAllMapNames() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.3b55
Returns the names of all of the maps as either a String List or JSON Array.
Usage
<source lang="mtmacro" line> getAllMapNames() getAllMapNames(delim) </syntaxhighlight> Parameters
delim
- The delimiter to use for the String List. If the value isjson
then a JSON Array is returned.
Examples
To get the names of all of the maps in a String List.
<source lang="mtmacro" line> [h: maps = getAllMapNames()] </syntaxhighlight>
To get the names of all of the maps in a JSON Array <source lang="mtmacro" line> [h: maps = getAllMapNames("json")]
</syntaxhighlight>