Delete: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(add tooltip text)
Line 5: Line 5:
[[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/>
 
<p id="tooltip">Deletes itself.</p>
 
'''<code>delete</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.


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


<!--T:19-->
<!--T:19-->
<p id="tooltip">Deletes the [[agent]] executing the [[stack]] of code.</p>
Deletes the [[agent]] executing the [[stack]] of code.


<!--T:20-->
<!--T:20-->

Revision as of 14:18, 8 August 2023

Other languages:
The Delete Block


Deletes itself.

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