CONDITION

cristina shared this question 2 years ago
Answered

I have created a slider that moves an imagen from values 5 todo 0.

Now I want to make It stop automaticly when the slider takes the value 0.


Should I write a conditional script or another thing?


Thanks

Comments (8)

photo
1

it is better from 0 to 5, then use 5-slider instead and select increase once in properties of slider

it is possible with script if you want.

for reset the slider do a script with

setvalue[<slider>,0]

startanimation[]

photo
1

And how Will be completely the script?

startanimation[servalue[<slider>, 0], false] ??


I am new at geogebra and I am a little bit lost

photo
photo
2

the first posts are checked by developers

please, do not repeat posts thinking they are not sended

photo
1

Okay, I will keep It in mind for the next time

photo
1

t1' <----> Translate(t1, (1-a) u)

the script of buttom do the work (I have used slider from 0 to 1; it is easier for me generally)

Files: foro.ggb
photo
1

thank you very much

photo
photo
1

Hi cristina,

try :

https://www.geogebra.org/ma...

see in script OnUpDate slider ''q'' :

SoitValeur[p,Si[q==round(q),p+0.01,p]]

and

see in script OnUpDate slider ''p'' :

SoitValeur[q,Si[p==round(p),q+0.01,q]]

and speed of slider :

speed of p = 4 (ceil(p) - p)

speed of q = 4 (ceil(q) - q)

...

photo
1

Thank you very much

photo
© 2020 International GeoGebra Institute