python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I use foreach inside a code in NetLogo?
I'm new to NetLogo and I'm having a hard time understanding the logic of using foreach and joining two parts into a single code. Can anyone help me understand and solve my problem?
My problem:
I have ...
Rafaela
Votes: 0
Answers: 1
Turtles moving to target when two conditions are met
I want to create a target (breed: shops) with two conditions:
The shop is open
The shop that is closest to the turtle (households) location
But I keep getting errors, see line below.
open-nh? is a s...
amik89
Votes: 0
Answers: 1
Converting an anonymous reporter in NL-5 to NL6
I am brand new to NetLogo, and trying to use a model written for v5 on v6, and hit some conversion challenges.
From reading the docs, the replacement of ? with anonymous functions seems easy enough to...
Chux Uzoeto
Votes: 0
Answers: 2
How to transform a list where each item is a number from 1 to 31 in NetLogo?
I'm having trouble transforming a list in my code below...
The problem: I have a list called:
ValidHabs: [[1] [2] [3] [4] [5] [1 2] [1 3] [1 4] [1 5] [2 3] [2 4] [2 5] [3 4] [3 5] [4 5] [1 2 3] [1 2 4...
Rafaela
Votes: 0
Answers: 2