When Pushed: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
mNo edit summary
Line 15: Line 15:
<!--T:3-->
<!--T:3-->
==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:21, 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