How to do combo input with multiple branches? X + X + X, is all fine, but I'm confused with X+ Y + X

That’s the part that I don’t have the screenshot for.
I use (skeletal) mesh (component)->anim montage is playing->branch=false: anim montage is playing checks whether a montage is already playing and I only run when it’s null.