So I'm trying to create a script checking the A column with row 8,9,10,11,12,13, SKIPPING 14, 15,16,17,18, SKIPPING 19, 20,21,22. If it is empty I would like to hide that row.

Is there a way to define the range of rows before the if statement?

This is what I have, but I need to do a seperate loop every time there is a gap in rows

```
 for (i = 8; i < 14; i++) {  //for loop for Current rep
    if (sheet.getRange(i, 1).getValue() == "") { 
    sheet.hideRows(i)};  
    };

```