'Hiding and unhiding rows based on checkbox in Google Sheets

I have a workbook that I am trying to hide some rows with a check box. For example If F1 is true hide rows 7:15 but I also want this to work in reverse if F1 is False show rows 7:15. I have multiple variations but the only thing that changes is the cell for the checkbox and the rows that will be hidden or shown. Thanks for any help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source