Rule 1: 1. Protasis, apodosis and the three particles
A condition regarded as possible or expected is introduced by إِنْ if or إِذَا when, if; a condition regarded as unreal, contrary to fact or merely imagined is introduced by لَوْ if (only). إِذَا is the everyday word for conditions that are expected to happen (when he comes); إِنْ leaves the matter open (if he comes); لَوْ says that it did not or will not happen (if he had come). Whichever particle is used, the protasis normally comes first and the apodosis follows it directly.
إِنْ تَصُمْ تُؤْجَرْ.
in taṣum tuʾjar
If you fast, you will be rewarded.
إِنْ: both verbs jussive.
إِذَا جَاءَ رَمَضَانُ صَامَ الْمُسْلِمُونَ.
idhā jāʾa ramaḍānu ṣāma l-muslimūna
When Ramaḍān comes, the Muslims fast.
إِذَا: both verbs perfect, present or future meaning.
لَوْ قَرَأْتَ الْقُرْآنَ كُلَّ يَوْمٍ لَحَفِظْتَهُ.
law qaraʾta l-qurʾāna kulla yawmin la-ḥafiẓtahu
If you had read the Quran every day, you would have memorised it.
لَوْ: perfect in both halves, لَـ on the apodosis.
مَنْ يَتُبْ يَغْفِرِ اللّٰهُ لَهُ.
man yatub yaghfiri llāhu lahu
Whoever repents, God forgives him.
مَنْ behaves exactly like إِنْ; the jussive يَغْفِرْ takes kasra before the article.