You should be using && not ||. In this line
if(Values[i][4] !== "Item Type" && Values[i][4] !== "Standard Product")
it will always call the logger because even if the cell contains Item Type or Standard Product, the other part of the whole expression will be true and it will print to the logger.
For example, if the cell contains Item Type
Values[i][4] !== "Item Type"
evaluates to false
but
Values[i][4] !== "Standard Product"
evaluates to true
false || true evaluates to true so the whole if statement succeeds.
So you should use this instead:
if(Values[i][4] !== "Item Type" && Values[i][4] !== "Standard Product")
You could also invert the logic and use ||
if(!(Values[i][4] === "Item Type" || Values[i][4] === "Standard Product"))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…