Proofreading

Thanks! Sorry about my lack of coding grammar, this is the first time I programmed Arduino in months.

I was able to fix all errors but this one.

OldSteve:
What's this supposed to do?:-if (for (x = 0; x <= 14; x++){beatarrayavg[x] + 2 <= beatarrayavg[x + 5]

That is supposed to basically say if any beatarrayavg is more than 2 lower than a beatarrayavg 5 values in the future, it will trigger an alarm. Unfortunately, it doesn't work. How can I reformat this?