Python is giving me “True” from empty values, but they should be “False”?
Hi and welcome to the forum.
Try this:
dataEnteringNode = IN
result = []
for i in IN[0]:
if len(i) < 1:
result.append(False)
elif i in IN[1]:
result.append(True)
else:
result.append(False)
OUT = result
2 Likes
Ah yes hi and thank you.
It’s working perfectly! Thank you very much =)
1 Like
Glad I could help! don’t forget to mark this topic to solved
For that type of comparison of list vs just a few items i would recomend using a simple codeblock for saving time.
if you wanna learn more designscript, this is where i learnt all i know:) A super handy presentation/cheatSheet from @solamour
2 Likes