Continuing from a somewhat similar topic here: https://www.grasshopper3d.com/forum/topics/how-to-replace-an-empty-branch-with-a-null-branch-or-a-0-value?id=2985220%3ATopic%3A918541&page=1#comments
I just came across this behaviour again and every time it doesn’t make sense to me.
If I test an empty branch if it is invalid or null using Null Item, it tells me it is both invalid and null. Yet Replace Nulls does nothing on empty branches.
So which one is wrong? Or how can I check for empty branches. I am aware of the workaround posted in the link, but I want to understand the reasoning.
Couldn’t the Null Item have another output for empty and have at least the Null output set to false? Maybe its just down to wording, but the Replace Null’s description sounds like what it is doing is check for Null using the Null Item and if that is true replace it with whatever is plugged in. But that’s not what it does at all. It somehow uses another check to see if something is ONLY null or invalid. Very confusing.
null-invalid-empty.gh (5.9 KB)