Hi Simon,
Of course, I will explain that.
The FX ModNode is the Modulo function. It divides the input by the number provided (Divisor) in the node and outputs the remainder only. In case above the Fraction object is set to "Explode and Connect" which provides each "ring" as an object with its own ID number..
This number is then provided in the User Data Node. When you click on the User Data node, there is a Preset with some standards Redshift RS MoGraph MG User ID (RSMGID). This could also be USER Data on an Object; then, you must type its name there.
So, the User Data provides an ID, typically starting with zero and then counting up: 0, 1, 2, 3, 4, 5, etc.
To switch two colors, we need to run the Color Switch using 0, 1, 0, 1, 0, 1, etc.
Let's take ID 3 and use the entry (Divider) 2, which means 3 divided by 2 = 1.5. For our needs, it can be divided one time and have a remainder of 1. If we do the same for ID 4, then we divide 4 by 2 = 2. It divides two times and has no remainder, meaning the result is zero.
Here is another source
https://youtu.be/Lf7JaGaeDP4?feature=shared&t=780
The Module node is often used to turn progressively counting sequences of numbers into smaller loops. It takes only color 0 and color 1.
If the divider were three, then you would get three colors, as the remainder would be 0, 1, 2.
Why does the ID number start with zero? In the past, computing was expensive, and every part of each binary needed to be used; hence, everything typically starts with a zero.
Please let me know if that was clear and if you have changed the number to something else and got different results, hence why the file has all ten fields set with color; typically, they are all white, but I hope it invites you to explore.
Please always ask; I'm happy to dive into it.
All the best