# data[].attributes.body
If + past perfect + , + modal + have + past participle

. If I had got a gold medal, I would have been happier.
If I had arrived earlier this morning, my parents shouldn't have grounded me.
If I had been faster in the competition, I would have won.
If she hadn't talked to him, they wouldn't been dating.
If the weather had been good, we could have gone to the beach.

# data[].attributes.body
The strucuture of the second contidional is if  +  Past Tense   +  comma  + Would  +  infinitive (without to)

-If you went to bed earlier you wouldn't be so tired.
-You wouldn't be so tired if you went to bed earlier.

# data[].attributes.body
The structure of the first conditional is  if  +  Present Simple + (,) comma + Will or Modals: May / Might/ Could + verb

examples
-If I study today, I'll go to the party tonight
-If I have enough money, I'll buy some new shoes

# data[].attributes.body
pñdIf + Present simple + , + present simple

If it rains, the plants get wet.
When I cry, my eyes hurt.
I rest when I am tired.
. I get tired, if I do exercise.
If I don't wear a jacket, I catch a cold