Name | <ElementTag.if_true[<object>].if_false[<object>]> |
Returns | ObjectTag |
Description | If this element is 'true', returns the first given object. If it isn't 'true', returns the second given object.
If the input objects are tags, only the matching tag will be parsed. For example: "<player.exists.if_true[<player.name>].if_false[server]>" will return the player's name if there's a player present, or if not will return 'server', and won't show any errors from the '<player.name>' tag even without a player linked. |
Group | element checking |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ElementTag.java#L2476 |