Question Concerning transform.Rotate

Is there any possibility to stop the transform.Rotate function after it has rotated a given amount of degrees? like

var degrees = 50;
transform.Rotate(degrees*time.DeltaTime,0,0); //ROTATE TO 50 DEGREES AND STAY THERE

Something like this maybe?

var rotated = 0;

function Update() {
    if(rotated >= 50) { return; }

    transform.Rotate(Time.DeltaTime, 0, 0);
    rotated += Time.DeltaTime;
}

Or use http://itween.pixelplacement.com/index.php