The variants seem to be linked while using conditionals

I am trying to create a Typewriter Text effect on figma.

I want it to loop back and forth 3 times between the first 2 variants to give the user adequate reading time, but when I’m trying to put a “change to” in the else conditional it automatically links it to the variant selected in the if conditional and changes that as well.

I would also like the animation to move further down the variants when 3 loops of the cursor blink(first 2 variants) are completed, so it’s necessary to put “change to” in both if and else conditionals.

Can someone help me out with this?

Also is there a better way to do the masking, I have currently masked it with a rectangle and had to create multiple variants because of variable letter widths, how can I use variables to do this?