user slider variable as limit in range of second slider variable?

Welcome to our Forums Technical Support Getting Started user slider variable as limit in range of second slider variable?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4185
    kenneth hickey
    Participant

      Hey

      Is it possible to use the value for variable x as a limit in the range of another variable, y, to ensure that you can’t set a y value larger (or smaller) than x in a “slider” box?

      Thanks

      Ken

      #4186
      dgteam
      Moderator

        Currently, the slider can’t depend on other variables, but you can use the slider in an Expression variable. Then the output of the Expression variable can be based on other variables for the min and max.

        Here is one example.  The slider is set to go from 0 to 1.  The expression uses the slider value.

        Slider

        When you change the slider, the value for ‘out’ will range from the min to the max. In this example, we typed in the values for min and max but these could come from data columns or commands.

        That is a bit of a work around but will work for this.

        In the future, we are going to investigate having the slider use other variables directly. These dependancies have to be set up carefully to make sure that all graphs/calculations update as needed.

        Anyway, hopefully this does what you need for the moment!

         

        #4187
        kenneth hickey
        Participant

          Thanks – that work-around works, but the “out” value scales with change in the variable I use as a max limit.

          It would be great if the slider could use other variables directly!! I hope you can get that to work.

          Thanks again
          Cheers
          Ken

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        Welcome to our Forums Technical Support Getting Started user slider variable as limit in range of second slider variable?