Delete: Difference between revisions

From StarLogo Nova Wiki
(Created page with "{{#vardefine:delete|<code>delete</code>}} '''{{#var:delete}}''' is a code block part of the agents drawer. ==Usage== Category:AgentsCategory:Code Block")
 
(Added information)
Line 1: Line 1:
{{#vardefine:delete|<code>delete</code>}}
[[Category:Agents]]
'''{{#var:delete}}''' is a [[code block]] part of the [[agents]] drawer.
<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.


==Usage==
==Usage==


[[Category:Agents]][[Category:Code Block]]
Deletes the [[agent]] executing the [[stack]] of code.
 
==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.
 
No code may be placed underneath the delete block as there will be no agent available to run the code.
 
==Related Blocks==
*<code>[[delete everyone]]</code>
*<code>[[delete agent|delete agent [_]]]</code>

Revision as of 02:51, 8 August 2022

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