A Tinderbox Reference File : Export Codes : Export Code Scope : Item-based : ^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: ^equal( data1, data2 )^ | Next: ^file( item )^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]