Tables with alternating row colors.
The header row color is fixed.
The color of the first two data rows determines the alternating pattern.
The first row in the table is set to GREY and appears as GREY in the final document.
The repeating data starts from row two.
The first data row contains <<rr_items>>. The color of this row will be used as the color of the first data row in the final document.
The second data row contains <<$rownum>> and <<item>>. The color of this row will be used as the color of the second row in the final document.
If the row colors are different, then the remaining rows will alternate between these two colors.
Built-in table variables
The <<$rownum>> variable is an example of a Docmosis built-in variable.
It is the number of the item in the repeating data set, so it doesn't include the header row, as you can see in this example. The $rownum variable starts from 1.
Try using <<$rowidx>>. This is another built-in variable that returns the number of the item in the repeating data set, starting from 0.