Boolean Mask Alternative for several parameters

Hi everyone.

I think we are aware of the “List.FilterByBoolMaks” node and its function.
But I need to do the same in case I have more than two parameters.

I try to explain it in words, but easier with this picture.

My attempt reached this step. But don’t know how to continue.

Hello,
here is a possibility with a dictionary
keys must be strings (values: can be variable)

Cordially
christian.stan

2 Likes

Absolutely worked
Thank you.

1 Like

Possibility 2: more variety
More effective like that, but I like dictionaries, to each his hobbies…

code block:

// test ? Action if true : Action(s) if false
Answer==11?"a":
Answer==1?"b":
Answer==5?"c":
Answer==9?"d":
"Bad Answer";

Cordially
christian.stan

2 Likes

Yes.
But not work if you had tones of values. Or your values always changed

Hello,
see a track if your data changes

Cordially
christian.stan

1 Like