title: Do while loop in R
body: <p>I have a Program in R where i'm using do while loop in the following format</p>
  
  <pre><code>for(i in 1:n) 
  {
      repeat
      {
          #code
          if(condition){break}
      }
  }
  </code></pre>
  
  <p>I have a problem even if the condition in if statement is true the loop is been executed still.Can anyone help me with this</p>
  
  <p>Thank you </p>