3 years, 4 months ago jordanParticipant
I understand that global variables ought to be able to used anywhere numbers are used, however, it seems like that is not the case when setting the limits on a slider global variable. In the attached image, I am attempting to use 2 value variables to set the limits on a slider variable. I am not sure if this is my own lack of understanding of the syntax, or a known limitation, but I would like the functionality.3 years, 4 months ago dgteamModerator
You’re correct that the slider does not accept variables. The only variable that does accept other variables is the expression.
We think we could modify the slider for this to work, but here is a trick you could use now to get essentially the same effect …
- leave the slider in the default of zero to one
- create an expression variable
- set the min and max (either in the expression or as separate variables)
- set the expression to (max-min)*slider+min
In this example, the variable ‘number’ will change when you move the slider between the min and max.3 years, 4 months ago jordanParticipant
This trick totally works for my purposes. I will be using it and thanks for the info! From a UX standpoint you may consider making the change, just because in pretty much every other instance you can replace any static number with a global variable. Constancy helps from a users point of view. Thanks for the quick response!
You must be logged in to reply to this topic.