If condition between lists have differrent level?

Hi all,
I have list A (@2level) with several value in it. And i want to compare each value in this list with 2 another list below (@1 level)
List B: 300, 600, 900
List C: X, Y, Z
The resutl i want is if a value in list A = 300, then return X
= 600, then return Y
= 900, then return Z
And this is my script, but it is not working properly. Can anyone help me fix this problem.
Thanks a lot :smile:
IF CONDITION BETWEEN MULTIPLE LIST WITH DIFFERENT LEVEL.dyn (31.3 KB)

The dynamo built-in if statement seems not to like comparing input lists with different lengths. You might have to use python for this. I’ve used Python as a workaround for a few scripts.

1 Like

There is extensive discussion on this topic across the forum already. Please search the forum for similar questions before bringing up broad topics. There are tons of workarounds already posted.

2 Likes