Nearest Within Steps With =/en: Difference between revisions
(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 with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | <section begin="name" />'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | ||
== Usage== | ==Usage== | ||
<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]]. | <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== | ||
[[File:Nearest Within Steps With Eq.png|right|alt=Nearest Within Steps With = |thumb]] | |||
<!-- <code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps with [Dropdown: Type of Trait](s) = [Textbox: Text]</code> --> | <!-- <code>nearest [Dropdown: Type of Agent](s) within [Textbox: Number] steps with [Dropdown: Type of Trait](s) = [Textbox: Text]</code> --> | ||
Inputs: | Inputs: |
Revision as of 19:35, 10 August 2023
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
Inputs:
- a breed from the first dropdown menu
- a number