== node list of strings not matching

Hi sirs,

Sorry for asking help again… I just want to ask why the ==node not working as shown in the photo? Both lists connected to the == node contains strings… but the output of the node are false and only 1 true… While using the set intersection node do recognize the strings that match between the lists…

I know I am doing something wrong but I cannot figure out what it is… thanks in advance for the help ^^

Best Regards

Hi,

You try to compare 66 items with 908 items.
When you use the lacing at longest you don’t check all lists.

Try this but be carefull with using cross lacing

2 Likes


How does look like crosslacing xxx in the codeblock?

1 Like

You mean this? :slight_smile:

Check the count in this situation it is huge :monkey_face:

4 Likes


OK

3 Likes

hi @jw.vanasselt, thank you for the reply…

yes I am scared of using cross lacing ^^… sometimes I experience dynamo or even revit crash when I do cross lacing. Do you know any alternative workflow?

thanks bro ^^

Little python? :slight_smile:


out = []
for a,b in zip(IN[0], IN[1]):
	if a == b:
		out.append(False)
	else:
		out.append(True)
		
OUT = out
	
3 Likes

Hello,
Booleans.AnyTrue is a node from a package? please

cordially
christian.stan

2022-05-05_11h47_29

1 Like

hi bro @jw.vanasselt ,

I tried your script but it has the same result as the OOTB box… But I think I understand now why we need to do the cross lacing… Thank you for your kind replies ^^

Best Regards…

Glad I could help :slight_smile:

1 Like