Slider Value/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
<section begin="image"/>
<section begin="image"/>
[[File:Slider value.png|alt=Slider value|thumb]]
[[File:Slider value.png|alt=Slider value|thumb]]
<section end="image" />
<section end="image" /><p id="tooltip">Returns the value of a selected slider.</p>
 
<section begin="name" />{{Block|[▼] slider value}}<section end="name" /> is a code block from the [[Interface]] drawer.
<section begin="name" />{{Block|[▼] slider value}}<section end="name" /> is a code block from the [[Interface]] drawer.


==Usage==
==Usage==
<p id="tooltip">{{Block|[▼] slider value}} refers to the value of a selected slider.</p>
{{Block|[▼] slider value}} refers to the value of a selected slider.


==Syntax==
==Syntax==
<section begin=image/>[[File:Slider Value.png|right|alt=The Slider Value Block|thumb]]<section end=image/>
[File:Slider Value.png|right|alt=The Slider Value Block|thumb]]
<!-- <code>[Dropdown: Slider Widget] slider value</code> -->
<!-- <code>[Dropdown: Slider Widget] slider value</code> -->
Inputs:
#a slider from the dropdown menu
==Example==
[[File:slider_value_example.gif|alt=Slider Value example gif|thumb]]
[[File:slider_value_example.png|alt=Slider Value example code|thumb]]
This is a model of the change in the pH of water following the addition of acid. The slider allows the user to decide how many hydronium ions to add when the ‘add H+’ button is pushed.


==Nuances==
==Nuances==

Latest revision as of 18:41, 14 August 2023

Other languages:


Slider value

Returns the value of a selected slider.

[▼] slider value is a code block from the Interface drawer.

Usage

[▼] slider value refers to the value of a selected slider.

Syntax

[File:Slider Value.png|right|alt=The Slider Value Block|thumb]] Inputs:

  1. a slider from the dropdown menu

Example

Slider Value example code

This is a model of the change in the pH of water following the addition of acid. The slider allows the user to decide how many hydronium ions to add when the ‘add H+’ button is pushed.

Nuances

Related Blocks