Asignación multiple

LalitoM shared this question 5 years ago
Answered

tengo varios deslizadores,


nDesl1, ...,nDesl4

necesito dependiendo de una condición poner todos en zero.

Algo como:

if(lsol=false, nDesl1=0,nDesl2=0...)

Gracias por su ayuda

Comments (3)

photo
1

One way to achieve what you said is by using the Execute() command, which allows you to apply more than one command at the same time.

So you could use something like


If(ISol==false, Execute({"SetValue(nDes1,0)","SetValue(nDes2,0)"}))

in the OnUpdate scripting of ISol., adding a SetValue command for each one of your sliders.

See https://wiki.geogebra.org/e... and https://wiki.geogebra.org/e...

photo
1

o poner una linea para cada deslizador en el script al actualizar la condicion, lo que sí que debes es poner setvalue() o valor() en español (en los script ingles) y no usar el igual

photo
1

Good Solution

© 2023 International GeoGebra Institute