title: unable to run for loop in google script
body: <p>I am trying to run a for loop but to no success.
  what I am trying to do is,I have a sheet with 1 in the entire column, I need to find the first row in which 1 appears and then blank out 25 cells from it.</p>
  <pre><code> var values = sheet.getRange(2, 3, sheet.getLastRow(),sheet.getLastColumn()).getValues();
          for(var i = 0;i&lt;values.length; i++){    
      if(values[i][0] == 1 ){
    Logger.log(i);
    break;
  }  }
    for(var j = i;j&lt;i+24; j++){
      sheet.getRange(j,3).setValue(&quot;&quot;);}
  </code></pre>
  <p>however, nothing happens.
  I do not know where am I going wrong.</p>