While Toggled/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
No edit summary
Line 9: Line 9:
<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>


===Syntax===
==Syntax==
<section begin=image/>[[File:Mientras está presionado Es.png|right|alt=The While Toggled Block|thumb]]<section end=image/>
<code>while [Dropdown: Type of Widget] toggled</code>
<code>while [Dropdown: Type of Widget] toggled</code>



Revision as of 20:20, 26 July 2023

Other languages:


While toggled

while [▼] toggled is a code block from the interfaz 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

The While Toggled Block

while [Dropdown: Type of Widget] toggled

Nuances

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

Related Blocks