Setting condition to the number slider

Hi,

I have several parameters (in number slider) and they are linked to a iterator (Colibri).

Is it possible to set a condition for parameter (A) (range from 0 to 1) that if the value of parameter (B) is 1 (range from 1 to 4), the value of parameter (A) must be 0?

E.g.

If B = 2,3,4
then A = 1 or 0

If B = 1
then A must be 0

Sorry that I have no idea how to start with this and hence there is no sample file attached. Thank you very much.

Moved to Grasshopper category.

Grasshopper natively doesn’t let you set up conditional slider dependencies like this, but Metahopper does:


conditional slider mh.gh (5.2 KB)

2 Likes