Visibility condition in plugin parameter

Dexter
Dexter Registered Posts: 2 ✭✭

I have a Python plugin with a parameter A of type "MULTISELECT" and another parameter B which I'd like to hide based on A.

For instance, if A can take on the values (1, 2, 3), what should be the "visibilityCondition" for parameter B when A meets one of these conditions?

  1. Hide B if A has no values selected
  2. Hide B if A = [1]
  3. Don't hide B if A has 1 but also other values

I tried "[2,3].some( el => model.A.includes(el))" but it doesn't work

Setup Info
    Tags
      Help me…