Create Each Do: Difference between revisions

From StarLogo Nova Wiki
(Create Each Do Draft)
No edit summary
Tag: Reverted
Line 5: Line 5:


== Usage==
== 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.
<p id="tooltip"><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.</p>


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

Revision as of 18:51, 17 August 2022

The Create Each Do Block

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


Usage

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.

Syntax

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

Nuances

create [_] [▼](s) each do is very similar to create [_] [▼](s). Both create agents, but generally create [_] [▼](s) each do allows for more complex and powerful usages.

Related Blocks

Relevant Video Resources

Relevant Activities