Using serial-data to define Ax-pin - problem

I have tried that but it seems to only work up to A5 and not for A6 & A7.

I have a nano.