Tinderbox v9 Icon

createLink(sourceDesignator,destinationDesignator[,linkType])


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Linking   [other Linking operators]

 9.1.0

 


createLink(sourceDesignator,destinationDesignator[,linkType])

From v9.1.0, createLink() can be used for link creation. This is useful when neither the source nor the destination of the link are this note.

Example:

	$MyList2.each(anItem2){
		$MyList.each(anItem1){
			createLink(anItem1,anItem2);
		};
	};

 

createLink() may also cope better than linkTo() and linkFrom() with the edge case when a note's $Name (or those of other notes in the note's path) contain forward slashes. Such paths are challenge as in string form the differing meaning of the use of slashes (container delimiter vs. note title) is ambiguous to the parser.



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : createLink(sourceDesignator,destinationDesignator[,linkType])