Tinderbox v9 Icon


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]




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

$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 'target' input allows for offset references. 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.

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