Tinderbox v10 Icon

distance(startItem, endItem)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Data manipulation  [other Data manipulation operators]

 Number [about Number data type]

 v7.0.0

 Baseline

 As at baseline


distance(startItem, endItem)

returns a Number, the map distance (in map units) between the centres of two notes. startItem and endItem are a name, path, attribute value or expression returning a unique reference to a single note.

To find the distance between note 'AA' and note 'BB':

$MyNumber = distance("AA,"BB");