Illegal range in part select

In reply to Rsignori92:

I would need to compare the variant bits in each cases. (it’s not random but it’s not constant also)