jeudi 20 février 2020

The item adds to the wrong array

It should work like that, I choose the company, then choose icon , and it should be counted specifically for each company depending on icon.

For example: I choose Company A and out - reference 1.Ao. Then I choose Company A and in and it gets me 2.A, but it should be added to another array, how to make it 1.A

for (var x = 0; x < values.length; x++) {
  //Logger.log(values[x][2])
  if (values[x][2] == compArray[9]) {
    if (checkingInOutCell == '🔻') {
      holderLink.push('copm 1');
      var paste = sheet.getRange(row, 2).setValue(holderLink.length + '.lin');

    } else if (checkingInOutCell == '🔺') {
      LinkOut.push('comp 2');
      var pasteOut = sheet.getRange(row, 2).setValue(LinkOut.length + '.linO');

    }

Aucun commentaire:

Enregistrer un commentaire