Me

From StarLogo Nova Wiki
Revision as of 19:00, 11 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The Delete Everyone Block

Refers to the agent executing the code.

me is a code block part of the agents drawer.

Usage

me is used to refer to the agent executing the code. This block is often used as a socket in other blocks, such as delete agent [_].

Syntax

(in reference to itself) me

Example

Me example gif
Me example code

This is a model of a salt precipitating out of a solution. When the ‘K’ agent collides with the ‘Cl’ agent, both agents are deleted and a new ‘Salt’ agent is created.

Nuances

Related Blocks

Note: Using the me block inside the delete agent block produces the same behavior as using a delete block.

Relevant Video Resources

Relevant Activities