Super cool, thanks Erika!
Harald had another idea: 0-360 world rotation already does modulo. He made a similar version with a pause between each step:

You're a wizard, Harri! 🪄 He bequeaths unto you these clues:
in theory the trick is splitting the 0-360 degree range into 0-180 for subtracting e.g. 50 from the controller first, and a second time 180-360 for adding the subtracted 50 back in in the second half. thus there are no jumps at the loop transition
in theory this can be done not only with halves, but also splitting [0-E], and using [E-360] to catch up
It's really neat to see the clever things that can be done with the new transform constraint! At the same time, this gets pretty complicated and it's not easily approachable. It's almost like building a clockwork robot! We have more plans for 4.3 that should be very powerful in a more straightforward way, though I'm not sure it could do the "automatic spider step with a pause".