newbie question:
i am using a simple for loop in my code. Let's say this returns 3 pozitive values of a, b and c. What i want is to have all 3 values described as different variables to use later outside the loop. Is it possible? Sample code:
var CampAdGR = ss.getRange("A9").getValue();
var data = ss.getRange("A23:A").getValues();
for (var i = 0; i < data.length; i++) {
if (data[i][0] == CampAdGR) {*continue code*}
Thanks!
data.filter(item => item[0] === CampAdGR).forEach( ... do stuff with only CampAdGR items ... );