This version is out of date, covering development from v4.6.0 to v4.7.1. 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)^ | aTbRef Site Map |
^exists( item | attribute)^ |
Code Type: | Boolean Comparison |
Code Scope of Action: | item |
^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: Export Codes - Full Listing | |
Previous: ^every( group , attribute[, data] )^ | Next: ^file( item )^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]