max-one-of1.0

max-one-of agentset [reporter]

Reports the agent in the agentset that has the highest value for the given reporter. If there is a tie this command reports one random agent with the highest value. If you want all such agents, use with-max instead.

          show max-one-of patches [count turtles-here]
          
;; prints the first patch with the most turtles on it

See also max-n-of, with-max.

Take me to the full NetLogo Dictionary