NetLogo / Tortoise

Compiler and runtime engine for NetLogo models that runs in JavaScript 🐢
https://netlogoweb.org
Other
56 stars 27 forks source link

Comparing between a link and a turtle produce unexpected results #243

Closed CIVITAS-John closed 2 years ago

CIVITAS-John commented 2 years ago

Submitted by @Maizi. https://gitee.com/turtle-sim/turtle-universe-issue-tracker/issues/I5ANQO

This one is pretty intuitive.


observer> carefully[show turtle 0 = link 0 1][show error-message]
observer: false
observer> carefully[show link 0 1 = turtle 0][show error-message]
observer: "Cannot read property 'id' of undefined"```
LaCuneta commented 2 years ago

Interesting, I'll take a look.