When there is a while-loop in a Coroutine, if I have a "yield" within the while-loop, does that mean the Coroutine will be re-entered within the while loop?

Say I have something like:

 function Update ()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            StartCoroutine("myCoroutine");
        }   
        if (Input.GetKeyDown("p"))
        {
            StopCoroutine("myCoroutine");
        } 
    }
 
    function myCoroutine ()
    {
        var t : float = 0;
        while (t <= 1.0) 
        {
            t += 0.1;
            yield;
        }
    }

Does that mean the only part of the coroutine that gets repeated is the part within the while loop, and the t variable will not be reset to 0 (unless I press (Input.GetKeyDown(“P”) at some point)?? Much thanks!

Yes, basically after you yield, the coroutine will restart on the next line after the yield.
In your case it’s the last statement in the loop, so it will go back to the condition part of the loop.

The t variable will hold the value it had before the yield.