Hello,
Is this sentence correct (regarding punctuation): "I forgot to set my alarm, and if the phone hadn’t rung, I would have been late for school."
Thank you very much for any answers
It's fine. The second comma is optional.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.