Multiple objects with SetValue command?

Math123 shared this question 4 months ago
Needs Answer

How to set values multiple sliders with one SetValue commands?Let sliders a, b, c, d

checkbox e

if(e,SetValue({a,b,c,d} , 3))

or

if(e,SetValue(a , 3, b, 4, c, 5, d, 6))

Best Answer
photo

5 variants to do this

BUT

Maybe the concept with the 4 independent sliders is suboptimal.

Comments (4)

photo
2

5 variants to do this

BUT

Maybe the concept with the 4 independent sliders is suboptimal.

photo
1

Thanks rami as always for your support.

In script i am writing SetValue[] for multiple abject, whether they have same condition. I want to make all objects in one SetValue[] command. e.g:

1. If[checkbox, SetValue[{a,b,c,d},0]] (like this otherwise it consumes 4 lines)

i want same condition satisfied object in one line for easy to read script.

2. Also if possible SetValue command once to set the different values of multiple objects.

e.g: SetValue[a, 1, b, 2, c, 4, d, 5] like this. I used Execute command but it required to write SetValue for every single object.

photo
1

All possibilities known to me, also those you would like to have, are available in my last post. Please study the file in detail before you make new requirements.

photo
1

Thanks a lot rami,

I gone through your last attachment. It worked and it will really save my lot of time and compact the multiple line code in one line.

photo
© 2020 International GeoGebra Institute