Determines if there is a connecting line between two markers. Will return true if a connecting lines exists, false if one does not exist.
Data retrieval
getMarkerConnection "sourceMarker" "targetMarker" |
Name | Type | Required | Comments |
---|---|---|---|
sourceMarker | string | yes | Marker at one end of connecting line. |
targetMarker | string | yes | Marker at other end of connecting line. |
None
boolean
Returns true if there is a connecting line between the two markers or false if there is not.
// Determine if there is a connecting line // between two markers. boolean $hasLine; // First set up some marker connections on the head setMarkerConnection "LFHD" "RFHD"; setMarkerConnection "RFHD" "RBHD"; // Demonstrate the existence of the marker connection we just made. $hasLine = `getMarkerConnection "LFHD" "RFHD"`; print $hasLine; // Should be true // Demonstrate the lack of a connection $hasLine = `getMarkerConnection "LBHD" "RFHD"`; print $hasLine; // Should be false |