I am very new at programming in Google Script, and need some guidance here.
I have a loop that is supposed to check the value of a range, then move down to the next row and set the new range's value as "next", which is then compared to "team".
If the condition is met then "team" is given the same value from the range that "next" was given, and "next" is given the value of the range below the current one.
The purpose is to find how many entries there are that meet conditions in a column, then my other parts of the code manipulate that data.
When the "team" value isn't the same as "next" (the value of the range below the current one), then the loop is supposed to stop, but doesn't. Code:
while (team = next) {
team = orange.getValue();
row ++;
range = col + row.toString();
orange = ordered.getRange(range);
next = orange.getValue();
entries ++;
};