Dear R-users and helpers I am facing a problem basically structuring my condition loop Say I have three values say x, y , z X Y Z Then I need to loop (till each of the values of X and Y and Z are same as the previous one) { over here the function does some calculations and updates the X and Y and Z with new values. I then save these values for X and Y and Z And the function or loop get called once again with these values. What I need is to stop or exit these loop moment the new values are equal to old saved values ( each of them X Y and Z) } any suggestion for structuring the loop....I could always use three IF conditions and or three Boolean checks....but is there some way for condition the loop for all three values at one go. regards Kunal