IF node and list formation

Hi all, can anyone explain to me why I get an empty list as a result from the IF node, even though I should be getting the six items on the left?


It seems to be working if I change the List.Empty node with a Code block, I guess this means I am not using List.Empty correctly?

And one more question - how should I set the false value of the IF statement if I want my end result to be 0? Right now it seems to be cycling through a list which I thought should only be accessed if the result was True, and replacing each item of the list with 0s.

I’d like the result if True to be a list of items and if False - an empty list or a 0.
Sorry if this has been discussed before, I’ve been looking for an answer for hours

Thanks. I ended up replacing the node with this and it worked