Player running animation now working when sprite is flipped

I have my player Idle to player walk conditons as Speed greater than 0.1 in the animator
I have tried turning this to minus as when the player is going backwards the speed goes to -5 I just cant get the running animation to work when the character flips

There is a gif of what is happening

if(Input.GetAxisRaw ("Horizontal") > 0f)
        {
            myRigidbody.velocity = new Vector3(moveSpeed, myRigidbody.velocity.y, 0f);
            transform.localScale = new Vector3(0.1960824f, 0.1960824f, 0.1960824f);
        }
        else if(Input.GetAxisRaw("Horizontal") < 0f)
        {
            myRigidbody.velocity = new Vector3(-moveSpeed, myRigidbody.velocity.y, 0f);
            transform.localScale = new Vector3(-0.1960824f, 0.1960824f, 0.1960824f);
        }

Hello,

What variable did you pass to speed in the script for the Animator (with the ‘SetFloat’ in C#)?
Did you make sure that the condition is flipped from ‘greater’ to ‘less than’?

You could also use the magnitude of the vector speed or the absolute value of the x-coordinate of the speed with only one condition on the animator (‘Greater’). This would be more straight forward I think.

myAnim.SetFloat("Speed", (myRigidbody.velocity.x));

You can try with:

myAnim.SetFloat("Speed", Mathf.Abs(myRigidbody.velocity.x));

And with one condition in the animator gameobject as you have in the little video you send. (The greater 0.1)

The animation is now working while facing backwards but once it goes to the Player walk animation when the sprite stops it doesnt go back to the idle

I have it working thank you very much for the help