Last True value in Boolean Sequence needs to be False

Hello everyone,

I have a list with Boolean values and i need to change some of them, according to the sequence they are in, see my screenshot below:

But I don’t know how to approach this.

Thanks in advance!
Daan

One method to try:

1 Like

Hi Jacob, this solution if perfect!!

Thank you so much!!