A constraint to generate odd_even_odd....... etc sequence

In reply to sbellock:

Hello Sbellock,

I am getting a compilation error in the line where you have const’.

Can you plz check and correct it?