While Toggled: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
No edit summary
Line 13: Line 13:


<!--T:3-->
<!--T:3-->
===Syntax===
==Syntax==
<code>while [Dropdown: Type of Widget] toggled</code>
<section begin=image/>[[File:While Toggled Nums.png|right|alt= While Toggled Block|thumb]]<section end=image/>
<!-- <code>while [Dropdown: Type of Widget] toggled</code> -->


<!--T:4-->
<!--T:4-->

Revision as of 20:32, 24 July 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 Toggled Block

Nuances

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

Related Blocks