Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2487 tags...
Name<MapTag.is_empty>
ReturnsElementTag(Boolean)
DescriptionReturns "true" if the map is empty (contains no keys), otherwise "false".
Example
- if <map[a=1;b=2].is_empty>:
    - narrate "This won't show"
- else:
    - narrate "This will show! The map has stuff in it!"
Example
- if <map.is_empty>:
    - narrate "This will show! That map is empty!"
- else:
    - narrate "This won't show"
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/MapTag.java#L392