Me: Difference between revisions

From StarLogo Nova Wiki
No edit summary
Tag: Reverted
(Marked this version for translation)
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
<section begin=image/>
<section begin=image/>
[[File:Me.png|alt=The Delete Everyone Block|thumb]]
[[File:Me.png|alt=The Delete Everyone Block|thumb]]
<section end=image/>
<section end=image/><p id="tooltip">Refers to the agent executing the code.</p>
 
<!--T:8-->
<section begin=name/>'''<code>me</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
<section begin=name/>'''<code>me</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
==Usage==
==Usage==
<p id="tooltip"><code>me</code> is used to refer to the [[agent]] executing the code. This block is often used as a [[socket]] in other blocks, such as <code>[[Delete Agent|delete agent [_]]]</code>. </p>
<code>me</code> is used to refer to the [[agent]] executing the code. This block is often used as a [[socket]] in other blocks, such as <code>[[Delete Agent|delete agent [_]]]</code>.
</translate>


<translate>
<!--T:2-->
<!--T:2-->
===Syntax===
==Syntax==
<code>(in reference to itself) me</code>
<code>(in reference to itself) me</code>
</translate>


<translate>
==Example== <!--T:9-->
 
<!--T:10-->
[[File:me_example.gif|alt=Me example gif|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.
 
==Nuances== <!--T:3-->
==Nuances== <!--T:3-->
</translate>


<translate>
==Related Blocks== <!--T:4-->
==Related Blocks== <!--T:4-->
</translate>


<translate>
<!--T:12-->
<strong>Note:</strong> Using the me block inside the delete agent block produces the same behavior as using a delete block.
 
==Relevant Video Resources== <!--T:5-->
==Relevant Video Resources== <!--T:5-->
</translate>


<translate>
<!--T:6-->
<!--T:6-->
==Relevant Activities==
==Relevant Activities==
[[Category:Code Block]]
[[Category:Code Block]]
</translate>
</translate>

Latest revision as of 18:20, 11 August 2023

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