While Toggled: Difference between revisions

From StarLogo Nova Wiki
(Created page with "Category:Interface <section begin="image"/> <section end="image"/> <section begin="name" />{{Block|when [▼] toggled}}<section end="name" /> is a code block from the Interface drawer. ==Usage== <p id="tooltip">{{Block|when [▼] 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> ===...")
 
Line 11: Line 11:


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


==Related Blocks==
==Related Blocks==

Revision as of 09:11, 1 December 2022


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

Usage

when [▼] 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

when [Dropdown: Type of Widget] toggled

Nuances

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

Related Blocks