Delete: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
No edit summary
Line 1: Line 1:
<languages/>
<translate>
<!--T:12-->
[[Category:Agents]]
[[Category:Agents]]
<section begin=image/>[[File:Delete Block.png|alt=The Delete Block|thumb]]<section end=image/>
<section begin=image/>[[File:Delete Block.png|alt=The Delete Block|thumb]]<section end=image/>
<section begin=name/>'''<code>delete</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
<section begin=name/>'''<code>delete</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
</translate>


<translate>
==Usage== <!--T:13-->
==Usage== <!--T:13-->


<!--T:14-->
Deletes the [[agent]] executing the [[stack]] of code.
Deletes the [[agent]] executing the [[stack]] of code.
</translate>


<translate>
<!--T:15-->
==Nuances==
==Nuances==
<code>delete</code> does not delete all [[agent]]s of a type. <code>delete</code> deletes only the single agent that runs the block. See [[#Related Blocks|related blocks]] for other code blocks with similar delete functions.
<code>delete</code> does not delete all [[agent]]s of a type. <code>delete</code> deletes only the single agent that runs the block. See [[#Related Blocks|related blocks]] for other code blocks with similar delete functions.


<!--T:16-->
No code may be placed underneath the delete block as there will be no agent available to run the code.
No code may be placed underneath the delete block as there will be no agent available to run the code.
</translate>


<translate>
<!--T:17-->
==Related Blocks==
==Related Blocks==
*<code>[[delete everyone]]</code>
*<code>[[delete everyone]]</code>
*<code>[[delete agent|delete agent [_]]]</code>
*<code>[[delete agent|delete agent [_]]]</code>
</translate>

Revision as of 18:19, 27 June 2023

The Delete Block

delete is a code block part of the agents drawer.

Usage

Deletes the agent executing the stack of code.

Nuances

delete does not delete all agents of a type. delete deletes only the single agent that runs the block. See related blocks for other code blocks with similar delete functions.

No code may be placed underneath the delete block as there will be no agent available to run the code.

Related Blocks