ilist
Returns the number of patches whose ilist is true. Example: show count-patches-with [(distance 0 0) < 5] This gives the number of patches inside a circle of radius 5 centered at the origin.
show count-patches-with [(distance 0 0) < 5]
Related commands: