title: missing ; before statement error on google Script
body: <p>I try my first steps in google script and I try to calculate the percentile of a given range of numbers in a row. I always got a </p>
  
  <p>Missing ; before statement. (line 107, file "Sitan_Code")  error</p>
  
  <p>I don't see the point, why I get this. </p>
  
  <p>could anybody help? </p>
  
  <p>Thanks in advance</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function percentile() {
    var tenPercent = 10 / 100; //simsSheet.getRange("I5").getValue() / 100;
    var twentyfivePercent = 25 / 100; //simsSheet.getRange("I6").getValue() / 100;
    var fiftyPercent = 50 / 100; //simsSheet.getRange("I7").getValue() / 100;
    var seventyfivePercent = 75 / 100; //simsSheet.getRange("I8").getValue()/ 100;
    var neintyPercent = 90 / 100; // simsSheet("I9").getValue() / 100;
    var values = simsSheet.getRange("A1:NTP1").getValues().sort();
    var percentage = [tenPercent, twentyfivePercent, fiftyPercent, seventyfivePercent, neintyPercent];
  
    for (i = 0; i &lt; percentage.length; i++) {
      var index = values.length * percentage[i];
  
      if ((index % 2) === 0) {
  
        var average = (index[i] + index[i + 1]) / 2;
  
        if (percentage[i] == percentage[tenPercent]) {
          var ten = simsSheet.getRange("K5") set.Value(average);
        } else if (percentage[i] == percentage[twentyfivePercent]) {
          var twentyfive = simsSheet.getRange("K6").setValue(average);
        } else if (percentage[i] == percentage[fiftyPercent]) {
          var fivty = simsSheet.getRange("K7").setValue(average);
        } else if (percentage[i] == percentage[seventyfivePercent]) {
          var seventyfive = simsSheet.getRange("K8").setValue(average);
        } else if (percentage[i] == percentage[neintyPercent] {
            var neinty = simsSheet.getRange("K9").setValue(average);
            else {
              inx = Math.round(index);
            }</code></pre>
  </div>
  </div>
  </p>