title: am learning google app script , this code is not working
body: <p>//here i need to check the value in the spreadsheetcell if grater than 100 should set value high OR else should print value low. But am getting syntax error </p>
  
  <pre><code>function myFunction() {
    var myapp=SpreadsheetApp;
    var data= myapp.getActiveSpreadsheet().getActiveSheet();
  
    for ( i=18 ; i&lt;=22 ; i++) {
      var newdata=data.getRange(i,1).getValue();
      if (newdata=&lt;100) {
        data.getRange(i, 2).setValue("High");
      } else {
        data.getRange(i, 2).setValue("Low");
      }
    }     
  }
  </code></pre>