Skip to content

Commit

Permalink
ListTag.any
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 14, 2021
1 parent af56104 commit 8ab4d6c
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -970,6 +970,17 @@ else if (input.size() > 1) {
return new ElementTag(object.isEmpty());
});

// <--[tag]
// @attribute <ListTag.any>
// @returns ElementTag(Boolean)
// @description
// returns whether the list is not empty.
// For example: a list of "" returns false, while "one" returns true.
// -->
registerTag("any", (attribute, object) -> {
return new ElementTag(!object.isEmpty());
});

// <--[tag]
// @attribute <ListTag.insert[...|...].at[<#>]>
// @returns ListTag
Expand Down

0 comments on commit 8ab4d6c

Please sign in to comment.