Interactive value control published as a variable | Version 1.0
A SliderBox places an interactive slider on the worksheet. The slider's
current position is published as a named variable (default S1) that any
MathBox, PlotBox,
ChartBox or LabelBox can reference.
Dragging the slider updates the variable live and recalculates every dependent box, which makes it ideal for exploring how a result changes as one input varies – a lightweight “what-if” control without retyping numbers.
On the Home ribbon, in the Insert in Workspace group, click the Slider button (located right after Chart). The cursor turns into a cross-hair; click anywhere on the worksheet to drop the slider.
A new slider is created with these defaults:
| Toolbar control | Purpose |
|---|---|
| name | The variable name the slider publishes (default S1). |
| range | The adjustable range as min..max:step (default 0..100:1). |
| value | The current value; type a number to set the slider exactly. |
The slider itself appears inside the box, with the current value shown above it as
name = value.
The name field sets the identifier under which the slider value is stored.
It follows the usual variable-naming rules: it must start with a letter or underscore and may
contain letters, digits and underscores. Names are case-sensitive, so S1 and
s1 are different variables.
The range field defines the lower bound, upper bound and (optionally) the step size
using the same notation as MathBox range literals:
| Entry | Meaning |
|---|---|
0..100:1 | From 0 to 100 in steps of 1 (integer slider). |
0..10:0.1 | From 0 to 10 in steps of 0.1 (one decimal place). |
-50..50:5 | From −50 to 50 in steps of 5. |
0..1 | From 0 to 1 with continuous (un-stepped) movement. |
The number of decimal places shown in the value display is derived from the step, so a step of
0.1 shows one decimal and a step of 0.01 shows two.
:step
for smooth, continuous adjustment. A comma form such as 0,100,1 is also accepted.
The bounds and step are not limited to fixed numbers — each part may be an expression that references another variable. This lets one box control the limits of a slider:
| Entry | Meaning |
|---|---|
0..N:1 | From 0 to the current value of variable N in steps of 1. |
a..b:s | Bounds and step taken from variables a, b and s. |
0..2*pi:pi/180 | From 0 to 2π in one-degree steps. |
Instead of a continuous range you can also supply an explicit list of values that the slider steps through one by one (the slider thumb selects the entry, not a position):
| Entry | Meaning |
|---|---|
[1,2,5,10,20,50] | Steps through exactly these six values. |
[0..1:0.1] | A bracketed range literal expands to 0.0, 0.1, … 1.0. |
myValues | The name of an array or set variable defined in a MathBox. |
There are three ways to change the slider value:
value field and press Enter.Any value you enter is clamped to the current range. Each change immediately republishes the variable and recalculates dependent boxes.
Reference the slider's variable by name in any other box, exactly like a variable assigned with
:= in a MathBox.
// Slider published as S1 over 0..100:1 radius := S1 // use the slider value directly area := pi * S1^2 // area follows the slider live
In a LabelBox set to Reference mode, enter
S1 to display the live value. In a PlotBox or
ChartBox, use S1 anywhere an expression is allowed to
drive the visualization from the slider.
S1, S2, …) to build an interactive
dashboard where a formula or chart responds to multiple inputs at once.
Click the slider box to select it. Drag the border to move it, or drag the bottom-right handle to resize it. Widening the box gives the slider a longer track and therefore finer manual control.
When the worksheet is saved, every SliderBox stores:
All of these are restored when the worksheet is reopened, and the slider variable is republished so dependent boxes show the saved value immediately. A range that references variables or an array/set value list is stored as text and re-resolved against the recalculated worksheet on load.
S1 for a single slider; use S2, S3, … for additional ones.0.1 or 0.01 for fine tuning.:step) when you want perfectly smooth motion for a live plot.0..N:1) so its range adapts automatically as N changes.myValues) or a list literal such as [1,2,5,10,20] to snap through a fixed set of choices.