Nearest Within Steps: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
mNo edit summary
Line 5: Line 5:
[[Category:Detection]]
[[Category:Detection]]
[[Category:Code Block]]
[[Category:Code Block]]
<section begin=image/>[[File:Nearest within steps.png|alt=Nearest within steps|thumb]]<section end=image/>
<section begin=image/>[[File:Nearest within steps.png|alt=Nearest within steps|thumb]]<section end=image/><p id="tooltip">Returns the closest agent of a selected breed in a given radius.</p>
<section begin="name" /><p id="tooltip">Returns the closest agent of a selected breed in a given radius.</p>


<!--T:8-->
<section begin="name" />'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.
'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.


<!--T:2-->
<!--T:2-->

Revision as of 18:09, 8 August 2023

Other languages:
Nearest within steps

Returns the closest agent of a selected breed in a given radius.

nearest [▼] within [_] steps is a code block part of the Detection drawer.

Usage

nearest [▼] within [_] steps is used to refer to the nearest agent of a selected breed that exists within a given step limit in Spaceland.

Syntax

The Create Each Do Block

Inputs in this block:

  1. a breed from the dropdown menu
  2. a number

Common Uses

Nuances

Related Blocks