While Toggled: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
<section begin="image"/>
<section begin="image"/>
[[File:While toggled.png|alt=While toggled|thumb]]
[[File:While toggled.png|alt=While toggled|thumb]]
Line 7: Line 8:
<section begin="name" />{{Block|while [▼] toggled}}<section end="name" /> is a code block from the [[Interface]] drawer.
<section begin="name" />{{Block|while [▼] toggled}}<section end="name" /> is a code block from the [[Interface]] drawer.


<!--T:2-->
==Usage==
==Usage==
<p id="tooltip">{{Block|while [▼] toggled}} executes commands repeatedly while the toggle button widget is turned on. When the toggle button widget is turned off, the commands in this block don’t run. Widgets can be created using the [[Edit Widgets]] feature.</p>
<p id="tooltip">{{Block|while [▼] toggled}} executes commands repeatedly while the toggle button widget is turned on. When the toggle button widget is turned off, the commands in this block don’t run. Widgets can be created using the [[Edit Widgets]] feature.</p>


<!--T:3-->
===Syntax===
===Syntax===
<code>while [Dropdown: Type of Widget] toggled</code>
<code>while [Dropdown: Type of Widget] toggled</code>


<!--T:4-->
==Nuances==
==Nuances==
Use this block when you want a stack of code to be continuously executed.
Use this block when you want a stack of code to be continuously executed.


<!--T:5-->
==Related Blocks==
==Related Blocks==
*{{Block|When Pushed|when [▼] pressed}}
*{{Block|When Pushed|when [▼] pressed}}


<!--T:6-->
[[Category:Interface]]
[[Category:Interface]]
[[Category:Code Block]]
[[Category:Code Block]]
</translate>
</translate>

Revision as of 18:24, 27 June 2023

Other languages:


While toggled

while [▼] toggled is a code block from the Interface drawer.

Usage

while [▼] toggled executes commands repeatedly while the toggle button widget is turned on. When the toggle button widget is turned off, the commands in this block don’t run. Widgets can be created using the Edit Widgets feature.

Syntax

while [Dropdown: Type of Widget] toggled

Nuances

Use this block when you want a stack of code to be continuously executed.

Related Blocks