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 : ^every( group , attribute[, data] )^ | aTbRef Site Map |
^every( group , attribute[, data] )^ |
Code Type: | Boolean Comparison |
Code Scope of Action: | group |
^every( group, attribute)^
Returns true if every member of the group has a value for the given attribute. Example:
^every(child, MyAttribute)^
Returns true if every of the group has a value for the attribute 'MyAttribute', and false otherwise. Always true if there are no members of group.
The extended syntax allows for an attribute value (data) to be tested. Example:
^every(child, MyStatus, Ready)^
Returns every child of the current note for whom the attribute 'MyStatus' has a value of 'Ready'.
The extended syntax for group operators applies only to ^any^ and ^every^.
Internally, the every() operator may be used.
Up: Export Codes - Full Listing | |
Previous: ^equal( data1, data2 )^ | Next: ^exists( item | attribute)^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]