title: In R programming can we have if inside for loop
body: <p>In R programming can we have if inside for loop</p>
  
  <pre><code>for(i in 1:length(abc)){
    print(i)
    if(){}
  }
  </code></pre>
  
  <p>this code is giving error I don't know why</p>