This version is out of date, covering development from v9.5.0 to v9.7.3. 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 v9 Icon

hasLocalValue(attributeNameStr[, item])


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

Operator Has Optional Arguments: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Data manipulation  [other Data manipulation operators]

 Baseline

 As at baseline

 [More on optional operator arguments]


hasLocalValue(attributeNameStr[,item])

For the current note this tests if an attribute name attributeNameStr has a locally set value (returning a Boolean true), or whether that value is inherited from a prototype or document default (false). The main input is a quote-enclosed system or currently defined user attribute (without a $ prefix):

$MyBoolean = hasLocalValue("Rule") 

The arguments are evaluated, so

$MyBoolean = 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 'item' input allows for offset addressing. For example:

$MyBoolean = hasLocalValue("Rule","Some Note") 

checks the local value status of $Rule not for the current note but for the note called "Some Note"

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.