How to play the stand animation once the player has reached the position clicked

I have this simple script when I click the screen the dude walks there, but once reached the position clicked he’s just stuck in the walk loop!

How do I say, If reached the position clicked and the target has reached that position to stand?

void Update () {
    if (Input.GetMouseButtonDown(0)) {

    SkelAnim.state.SetAnimation(0,walk,true);
    
    target = Camera.main.ScreenToWorldPoint(Input.mousePosition);
    
    }
    transform.position = Vector2.MoveTowards(transform.position, target, speed * Time.deltaTime);

    }

   
}

I got it working with

void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {

            SkelAnim.state.SetAnimation(0, walk, true);
            target = Camera.main.ScreenToWorldPoint(Input.mousePosition);
        }
        if ((Vector2)transform.position != target)
        {

            transform.position = Vector2.MoveTowards(transform.position, target, HeroSpeed * Time.deltaTime);

        }
        else
        {
            SkelAnim.state.SetAnimation(0, stand, true);
        }
    }
}