Using OR statement in condition


#1

Because of crappy search cannot find any topic about this.
The task is to filter a list of elements by a parameter value from a list, not by exact value. The length of the list of possible values varies. Any ideas?


#2

@Nikolay_Gerasimov1 Something like this?

If this doesn’t help, a better description with screenshots would help others understand your problem better


#3

Thanks for the quick reply, looks like it should work, didn’t know that == function works with lists. But:


What’s wrong with this?


#4

@Nikolay_Gerasimov1 Explore Levels by clicking on the arrow besides x and y
Note that I have done so in the example I posted


#5

Still doesn’t work


#6

Ok. Double check - that method works with numbers. With strings things are more interesting:


Suggestions?


#7

@Nikolay_Gerasimov1 The output from Parameter.ParameterByName is not a string
Try changing the level of y (instead of x) will structure the lists differently.

See if the below example helps …