Bonsoir
1- If it gets warmer, I will go swimming.
2- If it was warmer, I would go swimming.
3- I will buy a moped if I can afford it.
4- I would buy a moped if I could afford it.
5- I would learn the guitar if I had the time.
6- I will learn the guitar next year if I have the time.
If + présent ====> futur "will + Base Verbale"
if + prétérit =====> conditionnel présent "would + Base Verbale"
bonne soirée ☺☺☺