Me: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 17: | Line 17: | ||
<code>(in reference to itself) me</code> | <code>(in reference to itself) me</code> | ||
==Example== | ==Example== <!--T:9--> | ||
<!--T:10--> | |||
[[File:me_example.gif|alt=Me example gif|thumb]] | [[File:me_example.gif|alt=Me example gif|thumb]] | ||
[[File:me_example.png|alt=Me example code|thumb]] | [[File:me_example.png|alt=Me example code|thumb]] | ||
<!--T:11--> | |||
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. | 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. | ||
Line 28: | Line 30: | ||
==Related Blocks== <!--T:4--> | ==Related Blocks== <!--T:4--> | ||
<!--T:12--> | |||
<strong>Note:</strong> Using the me block inside the delete agent block produces the same behavior as using a delete block. | <strong>Note:</strong> Using the me block inside the delete agent block produces the same behavior as using a delete block. | ||
Latest revision as of 18:20, 11 August 2023
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
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.