Is there a easier way to customize a repeating group based on the index # being even or odd?

This is something that I run into frequently. It would be helpful if there was a way to set the states of a repeating group by if the index is an even or odd number. Does anyone know an easier way to do this?

As of now I have to manually create a condition that if this cells index is (1,3,5,7,9) etc.

I fell like this feature can easily be added to bubble and would help out a ton!

1 Like

Hi there, @dbom009… check out the modulo operator, and you might also want to check out the video in this thread.

Hope this helps.

Best…
Mike

Hey Mike, thanks for sending this over I will take a look.

I feel like this would be pretty easy for the bubble team to implement in their system since they can already detect the index #. Just would need to classify odds and even.

just incase anyone else come across this here is the condition

alternate

1 Like

Thank you!!! THIS IS A LIFE SAVER!

Had a feeling there was some way to do this.