Works well, but unfortunately, if I keep pressing ‘next’ track, it will go on forever, and each button press registers a ‘next track’ even though it doesn’t exist after 5. So when you want to go back to a previous track, I have to press as many times as I pressed next until it actually goes back to the previous track.
I added a CLAMP INTEGER function to be 0-5 before the ++ and – but that didn’t work. How do I hard-limit the range so the ‘next’ and ‘prev’ buttons stay within 0-5?
In the case of music though going to the next track after the last logically would go to the first track again, otherwise you would constantly be playing the last track once you hit it.
I think context of the situation would suggest a loop, as it mirrors how digital music players work when shuffle is disabled.
I appreciate the detailed look into this. For me both options are good to understand and think about. I might have to use clamp sometime anyway. And yes, @3dRaven the wrap worked nicely here because it does mimic the way digital players work