Change zeros to ones in a list

Hi all
I need to replace all zeros in a list with ones while keeping the length of the list
How can I do that?
Thank you in advance :slight_smile:

It can be done like this:

replace_0.gh (11.7 KB)

1 Like

Or you could do this:

missing

3. Attach minimal versions of all the relevant files

1 Like

men you are the best
Thank you

1 Like