Setting condition to the number slider


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?


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 (5.2 KB)