Previous and Next buttons in Widget Please Help meee

Hello everyone! I’ve spent a lot of time trying to find a solution, but I come to ask for a little help, thank you for assisting me!

I created a menu with several widgets inside a WidgetSwitcher with two buttons: PreviousButton and NextButton. I can successfully switch from index 0 to 1 using bindings, but it doesn’t work for switching from index 1 to 2 to 3, etc., because I don’t know how to do the same kind of increment in the other direction. I want to switch from 1 to 2 to 3 to 4, but also from 4 to 3 to 2 to 1, etc. Thank you for your help!