^exists( item | attribute)^

Tinderbox Icon


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 )^ 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox