How to make a smooth transition between Vector3's

Hi, so I am trying to do a smooth transition between two positions whenever a controller isGrounded or not. But it doesn’t seem to work. Can anyone help me with this please?

Here’s my script:

var DefaultPose : Vector3;
var AirPose : Vector3;
private var CurrentPose : Vector3;
var PlayerCon : CharacterController;
var Smooth : float = Time.deltaTime * 3;

function Update () {

 if(PlayerCon.isGrounded == false){

       transform.localPosition = AirPose * Smooth;


  }
  
  else
  
  if(PlayerCon.isGrounded == true){

       transform.localPosition = DefaultPose * Smooth;


  }


}

You could use either of the following:
Vector3.Lerp(Vector3 from, Vector3 to, float time);
Vector3.SLerp(Vector3 from, Vector3 to, float time);
SmoothDamp (Vector3 current,Vector3 target, ref Vector3 currentVelocity, float smoothTime, float smoothTime);

I’m not sure what you are trying to achieve but I wouldn’t do it in the update Loop
anyway, here’s an approach.

float _smoothValue;
if (PlayerCon.isGrounded) {
    transform.localPosition =  Vector3.Lerp(transform.localPoistion, Airpose, _smoothValue);
}
else {
    transform.localPosition =  Vector3.Lerp(transform.localPoistion, DefaultPose, _smoothValue);
}