how to adjust current value of one slider which depend on other slider?

Hayat shared this question 1 month ago
Answered

a = slider1

b = slider2

if slider a moves then current value slider b = a/2 (not fixed the slider b)

i used command if[a==a,b=a/2] which fixed the slider b. I want only update slider b value b=a/2 when slider a move ( not fiixed at that value). i can also move slider b freely.

Comments (6)

photo
1

a==a is true for ever

you cannot have both, b as slider and as variable bound to a: b=a/2

perhaps a script setValue by update a

photo
1

Hi hawe, can you pls script the condition for me. my script was an example.

photo
1

i want when slider a moving then slider b value becomes b = a/2 , but slider b also can be move not become fixed.

photo
1

try with attached

photo
photo
2

some thing like

on update


If(a>0,SetValue(b,a÷2))
if you want to and a condition out side a==a

photo
1

Thanks. Problem solved

photo
© 2019 International GeoGebra Institute