Tinderbox v11 Icon

isDuplicateName()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Property  [other Property type actions]

 Item  [operators of similar scope]

 Non-query Boolean  [other Non-query Boolean operators]

 boolean test

 v8.0.0

 Baseline

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


isDuplicateName

isDuplicateName()

This is true if another note in the document has the same $Name as the current note. isDuplicateName() ignores all aliases. The parentheses may be omitted. In an action, the current note might be tested:

$MyBoolean = isDuplicateName(); 

If the current note has any duplicate-named notes, $MyBoolean is true.

In an agent, all instances of notes with duplicates are listed. Thus, the query:

isDuplicateName() 

lists all instances of any note with duplicates.

This can be useful if trying to find/resolve notes with duplicate names within a document. If expecting to use action code to work with notes, it helps if a note's title ($Name) is unique.


See also—notes linking to here: