Fill-in list <null> items with upper 'real' item

Hi,

Question;

There is a list containing ‘real’ items, and ‘nulls’.
I would like to fill-in the empty items with the upper ‘real item’. see example below.
In a generic way (independent on the number off nulls).
Any suggestions?

2021-04-06 fill-in empty with upper ‘real’ item.gh (5.0 KB)

Thanks :slight_smile:


2021-04-06 fill-in empty with upper ‘real’ item_re.gh (10.5 KB)

Hi, Thanks!

I was just wandering. Do you know a manner to ‘break’ a list into multiple branches - based on the presense of text?
If this would be possible we can simple count the number of items in a branch and duplicate accordingly :relaxed:

Thanks again!


2021-04-06 fill-in empty with upper ‘real’ item_reV2.gh (14.7 KB)