Nearest Within Steps With =/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 4: Line 4:
[[Category:Code Block]]
[[Category:Code Block]]
<section begin=image/>[[File:Nearest within steps with =.png|alt=Nearest within steps with =|thumb]]<section end=image/>
<section begin=image/>[[File:Nearest within steps with =.png|alt=Nearest within steps with =|thumb]]<section end=image/>
<section begin="name" />'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.
<section begin="name" /><p id="tooltip">Returns the closest agent of a selected breed in a given radius with a specific trait.</p>
 
'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.


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


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


<code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps with [Dropdown: Type of Trait](s) = [Textbox: Text]</code>
<section begin=image/>[[File:Nearest Within Steps With Eq.png|right|alt=Nearest Within Steps With = |thumb]]<section end=image/>
<!-- <code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps with [Dropdown: Type of Trait](s) = [Textbox: Text]</code> -->
Inputs:
#a breed from the first dropdown menu
#a number


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

Revision as of 14:38, 8 August 2023

Other languages:
Nearest within steps with =

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

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

Usage

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

Syntax

Nearest Within Steps With =

Inputs:

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

Common Uses

Nuances

Related Blocks