Create Each Do/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Created page with "== Uso== <code>create [_] [▼](s) each do</code> is used to populate Spaceland with agents and then run a stack of code individually for each agent. This can be useful for making many agents and setting different traits for each.")
Line 1: Line 1:
<languages/>
<languages/>


<div lang="en" dir="ltr" class="mw-content-ltr">
[[Category: Agents]]
[[Category: Agents]]
<section begin=image/>[[File:Create Each Do.png|alt=The Create Each Do Block|thumb]]<section end=image/>
<section begin=image/>[[File:Create Each Do.png|alt=The Create Each Do Block|thumb]]<section end=image/>
<section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[code block]] part of the [[agents]] drawer.
<section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[code block]] part of the [[agents]] drawer.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== Uso==
== Usage==
<code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each.
<code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Sintaxis===
===Syntax===
<code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code>
<code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<code>crear [_] [▼](s) cada uno hacer</code> es muy similar a <code>[[Special:MyLanguage/create|crear [_] [▼](s)]]</code>. Ambos comandos crean agentes, pero generalmente <code>crear [_] [▼](s) cada uno hacer</code> permite usos más complejos y potentes.
==Nuances==
<code>create [_] [▼](s) each do</code> is very similar to <code>[[create|create [_] [▼](s)]]</code>. Both create agents, but generally <code>create [_] [▼](s) each do</code> allows for more complex and powerful usages.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
==Bloques relacionados==
==Related Blocks==
*<code>[[create|create [_] [▼](s)]]</code>
*<code>[[create|create [_] [▼](s)]]</code>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Relevant_Video_Resources"></span>
==Relevant Video Resources==
==Recursos en video relevantes==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Relevant_Activities"></span>
==Relevant Activities==
==Actividades relevantes==
</div>

Revision as of 20:33, 20 June 2023

Other languages:
The Create Each Do Block

create [_] [▼](s) each do is a code block part of the agents drawer.

Uso

create [_] [▼](s) each do is used to populate Spaceland with agents and then run a stack of code individually for each agent. This can be useful for making many agents and setting different traits for each.

Sintaxis

create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]

crear [_] [▼](s) cada uno hacer es muy similar a crear [_] [▼](s). Ambos comandos crean agentes, pero generalmente crear [_] [▼](s) cada uno hacer permite usos más complejos y potentes.

Bloques relacionados

Recursos en video relevantes

Actividades relevantes