@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 # True and False outcomes t = IN f = IN if test: OUT = t else: OUT = f
thnx man it works perfectly xD