Nearest Within Steps/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 7: Line 7:
<section begin="name" />'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.
<section begin="name" />'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.


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


==Syntax==
==Syntax==


<section begin=image/>[[File:Nearest Within Steps.png|right|alt=The Create Each Do Block|thumb]]<section end=image/>
[[File:Nearest Within Steps.png|right|alt=The Create Each Do Block|thumb]]
<!-- <code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps</code> -->  
<!-- <code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps</code> -->  
Inputs in this block:
Inputs in this block:

Revision as of 19:34, 10 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