If I had done my homework beforehand, I would have stayed at home.

What does If I had done my homework beforehand, I would have stayed at home. mean?

If I had done my homework beforehand, I would have stayed at home.

If I had done my homework beforehand, I would have stayed at home. in other languages