I have successfully loaded values from a tab-delimitted (.txt) data file into a List, with xcor, ycor & color values for each of 10 turtles. I read in the data using:
file-open "File Input Load Turtles.txt"
set turtle-data sentence turtle-data (list (list file-read file-read file-read))
I'm now trying to create 10 new turtles based on the values in the new List. I tried the following syntax (among many other unsuccessful attempts):
foreach turtle-data crt set xcor first ? set ycor item 1 ? set color last ?
At the first ? in the foreach command NetLogo reports the error "This special variable isn't defined here."
Can anyone please tell me the correct syntax for iteratively referencing the list of 10 sub-lists to execute the set xcor, set ycor and set color commands in the foreach loop to create the 10 turtles?
Thanks very much!