Issue with If/Else and List.DropItems

See attached GIF. Does anyone know what is going on here? The “true” branch (List.DropItems) is being executed no matter what the input is. This is driving me crazy!

It looks like false is almost executing as intended; the problem is that the output seems to cut to the smaller list size (4 elements) between the two options.

EDIT: here’s an old conversation on the topic, contains a solution

In this case and with the If node, the length of the result is always truncated to the count of the shorter option

condition.dyn (7.5 KB)

Thanks @Vikram_Subbaiah!

1 Like