How to Display Every Other Item in a List?

I think it’s mostly stated in the title of the thread.

I have a list of numbers representing times. For example:

1,0,2,0,4,30,7,0 = 1:00, 2:00, 4:30, 7:00

I’m trying to start by displaying these numbers as a repeating group and I’ve broken down the time into displaying the hour and the minute in different text display boxes lined up with each other in the repeating group in the UI. So following the above example:

[text box]:[text box]
1:00
2:00
4:30
7:00

So , to fill in the first text box (Hours) on the repeating group, I need to access the first item on a list and then EVERY OTHER ITEM until the end of the list. How is this done?
I need to do the same for the minutes text box. I need to start with the second item in the list and do every other item until the end of the list.

Thank you!

Hello @sarsasparillaj

Consider exploring the <-modulo-> operator

Example to show odd indexed rows (1, 3, 5, 7, 9 etc etc):
current cell’s index <-modulo-> 2 is 1 then visible

Sorry for the delay. I will give this a try!

1 Like