This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^exists( item | attribute)^ |
^exists( item | attribute)^ |
^exists( object )^
If the item exists for current note, this condition inside a in ^if(condition)^ block statement is true, where object is parent, child, childLinks, basicLinks, inboundLinks, lastChild, next, previous, nextSibling, and prevSibling.
^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.
Up: Item-based | |
Previous: ^do( theMacro [,argument, anotherArgument, etc.] )^ | Next: ^file( item )^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]