Previous/Next item's value in a Repeating Group

Let’s say I have a repeating group with 5 items. Each item is assigned a dynamic number (say, 3, 15, 25, 55, 125).

Assuming they’re sorted by number, how do I get the value of the previous or next item?

Perhaps something like: RG’s list :item # (current cell’s value - 1)

You may need to use custom state for current cell’s value - 1 though, since Bubble doesn’t do parenthesis, so it evaluates the equation from left to right.

Thank you very much for the reply! I may need to think more about this, as the values don’t differ incrementally by 1, but rather are unique numbers in a list.

This topic was automatically closed after 70 days. New replies are no longer allowed.