[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing turtle variables



Does anyone know a way to conditionally access turtle variables for print 
or type operations in the output window?

The only way I am aware of is: 

print var-of turtle-id

However, this does not allow a condition like:

if (color = red)
   [print var-of turtle-id]

Ideally, instead of turtle-id, one would like to say who, as some turtles 
may have died.  Using who in a print or type statement causes problems 
presumably because print and type are observer operations and who is a 
turtle variable.  Does anyone know a way around this? (really what is 
needed is some equivalent of a print operation for turtles ).  


Thanks 

Matt