I’m trying to use incdec for a simple function in which I want to cycle through numbers 1 through 8. I want to be able to climb up in such a fashion: …, 7, 8, 1, 2… and down: …, 2, 1, 8, 7… not at any regular interval but when I manually trigger it.
This seems like the kind of thing incdec was made for but I’m having an extremely hard time getting it to do just this (though come close using %). Am I trying to use incdec for something other than its intended purpose? Is there a better way to do what I want?