Name | <ObjectTag.if_null[<object>]> |
Returns | ObjectTag |
Description | If the object is null (or the tag errors), this will return the input object.
If the object isn't null, the input won't be parsed, and the original object will be returned. For example, "<player.if_null[<npc>]>" will return the player if there is a player, and otherwise will return the NPC. This functions as a fallback - meaning, if the tag up to this point errors, that error will be hidden. |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/tags/CoreObjectTags.java#L100 |