out-<breed>-to
out-link-to

out-<breed>-to turtle
out-link-to turtle
Turtle Command

Reports the link from the caller to turtle. If no link exists then it reports nobody.

crt 2
ask turtle 0 [
  create-link-to turtle 1
  show out-link-to turtle 1 ;; shows link 0 1
]
ask turtle 1
[
  show out-link-to turtle 0 ;; shows nobody
]

Take me to the full NetLogo Dictionary