How to determine if multiple values are selected in conditional rule

I would like to apply the following rule when Multiple-Value Parameter is specified for a conditional rule.

  • Show visual when only one arbitrary value is selected
  • Hide the visual when multiple arbitrary values are selected
    Arbitrary values are not fixed values, so Equal and Not Equal shall not be used.

Is there a way to solve this issue?

Hi @shinya.sakae
you mean something like that?

BR

1 Like

@ErikG
Thanks to reply!

It will likely vary.
I want to hide only when multiple arbitrary values are selected.

I want to hide only when multiple arbitrary values are selected.
For example, hide when 1 or 2 is selected.
I also want to hide when 1,2,3 is selected.
When 1 is selected, show it because there is only one type of value selected.
I want to achieve this.

If you want to show when only “1” or “2” is selected it will work but as soon as you would like to show when “1,2” is selected it will not. My sample doesnt work either.

1 Like

@ErikG
My explanation wasn’t good.
I want to condition the number of selected values.

If nothing is selected, we want to display it.
If you have selected one item, you want to display it.
If two or more items are selected, I want to hide them.

The logic is expressed in pseudo code like this.

if (multipleValues.length >= 2) {
  // hide
} else {
  // show
}

Hi @shinya.sakae,
I’ve tested this as well, and this doesn’t appear to be possible, however at AWS, our roadmap is primarily driven by our customers. Your feedback helps us build a better service, I’ll tag this as a feature request and archive this question.
Many Thanks,
Andrew