Create a cull pattern that will "do" the same as the 'delete consecutive'

Hi,

I have 2 lists, one with a series of numbers where I would like to get the true/false pattern from, and a list I would like to cull with that pattern.
I would like the true/false pattern to be like if the ‘delete consecutive’ returned true and false instead of the “shortened” list.
(the same number occurs multiple times in the list i.e: 11223355111333666, so I can’t just remove dublicates).

Best,
Silas

1 Like

Hi Dani,

It works then there is a continuously row of number, but my list kind of loop, so I have the same number more than one time ( 11222334441112233344) and then number shows up the second time the script gives a false (see picture).

Do you think you can fix that? :slight_smile:

Best,
Silas

Hi Dani,

It works perfect now, thank you for helping.

Best,
Silas