Led keeps on after statement is reached

AngelinaNoLee:
The discusion was about wether or not it was formatted, i formatted it im sure of that (using ctrl+t) and when pressed again the sketch said cant make more autoformat changes so then its autoformatted.

My appologies. You didn't specify what "this" was. I assumed it to be the benefits of using auto-format.