This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

^exists( item | attribute)^ (DEPRECATED)

This pages describes features, codes or syntax whose use is now DEPRECATED, i.e. not advised either for new or continued pre-existing use.

Deprecated aspects of Tinderbox may be supported on a legacy basis but the latter support can't be presumed to be indefinite. Therefore you should update your active TBX documents to latest practice as soon as practical.


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Boolean Comparison   [other codes of this type]

 item   [codes with similar scope]

 Already in v5.0.0

 format"


DEPRECATED - use $Attribute short form Boolean test.

^exists( object )^

If the item object exists for current note, this condition inside a in ^if(condition)^ block statement is true, where object is one of the {parent, child, childLinks, basicLinks, inboundLinks, lastChild, next, previous, nextSibling, and prevSibling} item objects.

^exists( attribute )^

This condition is true if the attribute (represented here by attribute) exists for the note, and if it is:

…and it is always true if the attribute is a date.

But ^if(^exists(text))^ cannot be used to check if the note has some text content as text is not an attribute. Use ^if(text(this))^ instead.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Deprecated Usage : Deprecated Export Codes : ^exists( item | attribute)^ (DEPRECATED)