When Pushed/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 10: Line 10:


==Syntax==
==Syntax==
<section begin=image/>[[File:When Pushed Nums.png|right|alt=When pushed Block|thumb]]<section end=image/>
[[File:When Pushed Nums.png|right|alt=When pushed Block|thumb]]
<!-- <code>when [Dropdown: Type of Widget] pushed</code> -->
<!-- <code>when [Dropdown: Type of Widget] pushed</code> -->
Input:
Input:

Revision as of 19:47, 10 August 2023

Other languages:
The when pushed block

Executes commands inside this block (once, from top to bottom) when the push button widget is pushed. Widgets can be created using the Edit Widgets feature.

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

Usage

when [▼] pushed begins a single execution of a stack of code (from top to bottom) when the pushed button widget is pushed. Widgets can be created using the Edit Widgets feature.

Syntax

When pushed Block

Input:

  1. Select the desired push-button widget from the drop down menu.

Nuances

Related Blocks