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 9: Line 9:
<p id="tooltip"><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]].</p>
<p id="tooltip"><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]].</p>


===Syntax===
==Syntax==


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


==Common Uses==
==Common Uses==

Revision as of 18:10, 27 July 2023

Other languages:
Nearest within steps

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