While Toggled: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
[[File:While toggled.png|alt=While toggled|thumb]] | [[File:While toggled.png|alt=While toggled|thumb]] | ||
<section end="image"/> | <section end="image"/> | ||
<section begin="name" />{{Block| | <section begin="name" />{{Block|while [▼] toggled}}<section end="name" /> is a code block from the [[Interface]] drawer. | ||
==Usage== | ==Usage== | ||
<p id="tooltip">{{Block| | <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=== | ||
<code> | <code>while [Dropdown: Type of Widget] toggled</code> | ||
==Nuances== | ==Nuances== | ||
Line 14: | Line 14: | ||
==Related Blocks== | ==Related Blocks== | ||
*{{Block| | *{{Block|When Pushed|when [▼] pressed}} | ||
[[Category:Interface]] | [[Category:Interface]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Revision as of 09:15, 1 December 2022
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.