Pick the next item at index

I have a list and a choose item, for exemple list = [1,2,3,4,5] and item = 2, i need to take the next item in list, in this case 3.

How can i make that with formula or custom code?

Hello there

For the next item in the list I use a Python function. You can try it, and I hope you will get the solution.

I managed to do it with a function with weweb’s own IA java script, it worked

how can i use python in weweb?

Marco is probably just a bot? Anyway. What you can do is the following:

list[list.indexOf(2)+1]

1 Like