def _Cycle(value, unused_context, args):
  # @index starts from 1, so used 1-based indexing
  return args[(value - 1) % len(args)]
Cycle between various values on consecutive integers.
dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/_Cycle