I'm trying to split multylines in a cell using '\n' with the following code, however, the logger returns [] empty list can somebody help me out finding the issue
Thanks in advance
for (var i = 0; i < lrIndexArtf; i++) {
if (rngArtf[i] != "") {
var cellValue = rngArtf[i].toString();
var linesArray = cellValue.split('\n');
for (var k = 0; k < linesArray.length; k++) {
data_list.push(linesArray[k]);
}
}
} //end of loop
Logger.log(data_list)
cellValue
. It probably doesn't contain\n