This version is out of date, covering development from v7.0.0 to v7.5.6. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox 7 Icon

hasLocalValue("attributeName"[,target])


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 Baseline

 


hasLocalValue("attributeName"[,target])

This tests whether a note has a specific value for an attribute (returns Boolean true), or whether that value is inherited from a prototype or a default (false. The main input is a quote-enclosed system or currently defined user attribute (without a $ prefix):

hasLocalValue("Rule") 

The arguments are evaluated, so

hasLocalValue($MyString) 

returns information about the attribute whose name is currently saved as the current note's value of $MyString.

The note evaluated is the current note. The 'target' input allows for offset references.

Most users will not have need of this but it is useful in very large document to find the odd note with a local setting, when visual review would take too long.



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : hasLocalValue("attributeName"[,target])