When Pushed/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Updating to match new version of source page)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
<section begin="image"/>[[File:Aldarclicen.png|alt=The when pushed block|thumb]]<section end="image"/>
<section begin="image"/>[[File:Aldarclicen.png|alt=The when pushed block|thumb]]<section end="image"/>
<section begin="name" />{{Block|when [▼] pushed}}<section end="name" /> is a code block from the [[Special:MyLanguage/Interface|interfaz]] drawer.
<section begin="name" />{{Block|when [▼] pushed}}<section end="name" /> is a code block from the [[Special:MyLanguage/Interface|interfaz]] drawer.
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="name" />{{Block|when [▼] pushed}}<section end="name" /> is a code block from the [[Interface]] drawer.
</div>


==Uso==
==Uso==
<p id="tooltip">{{Block|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.</p>
<p id="tooltip">{{Block|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.</p>
<div lang="en" dir="ltr" class="mw-content-ltr">
<strong>Note:</strong> It is useful to use the ‘when pushed’ with a push button widget when you want to execute a code segment once.
</div>


==Sintaxis==
==Sintaxis==


<section begin=image/>[[File:Al Dar Clic Es.png|right|alt=When pushed Block|thumb]]<section end=image/>
[[File:Al Dar Clic Es.png|right|alt=When pushed Block|thumb]]
<!-- <code>when [Dropdown: Type of Widget] pushed</code> -->
<!-- <code>when [Dropdown: Type of Widget] pushed</code> -->
Entradas:
Entradas:
#Seleccione el widget de botón deseado del menú desplegable.
#Seleccione el widget de botón deseado del menú desplegable.
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:when_pushed_example.gif|alt=When Pushed example gif|thumb]]
[[File:when_pushed_example.png|alt=When Pushed example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
By default, StarLogo Nova displays the the setup button widget. More buttons can be added by pressing ‘edit interface.’ After new push buttons are created, they will be displayed in the dropdown menu in the when pushed button. This button executes the instructions within the code when the button is pressed. In this case, we see common setup behavior.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Latest revision as of 12:48, 12 August 2023

Other languages:
The when pushed block

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

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

Uso

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.

Note: It is useful to use the ‘when pushed’ with a push button widget when you want to execute a code segment once.

Sintaxis

When pushed Block

Entradas:

  1. Seleccione el widget de botón deseado del menú desplegable.

Example

When Pushed example gif
When Pushed example code

By default, StarLogo Nova displays the the setup button widget. More buttons can be added by pressing ‘edit interface.’ After new push buttons are created, they will be displayed in the dropdown menu in the when pushed button. This button executes the instructions within the code when the button is pressed. In this case, we see common setup behavior.

Nuances

Related Blocks