Skip to main content

Slider Value

Returns the value of a selected slider.

Slider Value block

Description

The Slider Value block returns the value of a selected slider. This is a code block from the Interface drawer.

Usage

Slider Value refers to the value of a selected slider.

Syntax

Input:

  • A slider from the dropdown menu

Example

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.

Slider Value example code
  • Label - Gets the value of a label widget
  • Data Box - Gets the value of a data box widget