这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy9 R9 `! E) O, L
if dummy < (item j [distance-from-other-turtles] of node3) 9 m% w! _ t3 Q* l. h [# B% P+ @0 K- W5 {
ask node3 [0 ?3 W7 v% H& e+ o
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy! n4 ?- K \) b; u C
] 4 B; j# z* h: C% \8 D' [ }( n( O$ w ]