@mohamed.m.matook did but still not working … can it be beacuse my true input is an empty list !!
yes, I guess that is the reason. I honestly never worked with Dynamo if node but apparently, it does not take an empty list as input. You have to detect when the list is empty beforehand then replace it with sth else in case it is and leave it as it is when not.
Anyway, You can replace the IF node with this small Python node and copy in these few lines. The input of the true and false in this case does not matter.
# Argument
test = IN[0]
# True and False outcomes
t = IN[1]
f = IN[2]
if test:
OUT = t
else:
OUT = f
thnx man it works perfectly xD
1 Like