This page https://codap.concord.org/help/functions
indicates that modulo(caseIndex,3) should work, but there isn’t actually a modulo or mod function with that name. It does seem that the percent-sign operator works: 17 % 5 gives 2, for example, and 65535 % 100 gives 35. I know adding a modulo() or mod() function to CODAP itself would take some time, but perhaps instead the help document could just be updated to include a pseudo-entry under modulo() saying to use % instead and giving an example or two. That way, someone searching for the word modulo would find some help. And, update the modulo(caseIndex,3) to be caseIndex % 3.
Thanks again for a great software package!