as I love my parents

a. If you loved anyone as I love my parents, you would understand people like me.
b. If you loved anyone, as I love my parents, you would understand people like me.

Does the comma in (b) change the meaning? Is it correct at all?

I am not sure it works. If it does then the meaning of (b) is different to (a). The first sentence means ‘you don’t love anyone the way I love my parents. That is why you don’t understand me.’’ but the meaning of (b) would be ‘You don’t love anyone. I love my parents. That is why you don’t understand me.’

Many Thanks.

You are correct in thinking that the comma does not work there, though I don’t think the meaning you have attributed to sentence B works either. To me, the phrase within the commas is not relevant to the phrase outside the commas.