While Toggled

From StarLogo Nova Wiki
Revision as of 19:51, 27 June 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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