I am currently using method of creating alternating colored lines in a repeating group. It works, but it is not the quickest process. Is this the best way to do it?

Which results in this:

Thanks
I am currently using method of creating alternating colored lines in a repeating group. It works, but it is not the quickest process. Is this the best way to do it?

Which results in this:

Thanks
As far as I know it’s the only way. This is how I do it.