1 :
We"ll have a barbecue if the weather is fine.
I'll cook you something if you haven't eaten.
If you're doing your homework when i arrive, i'll be as quiet as a mouse.
2:
If it were cheap you would buy the house.
If i had a key i would let you inside.
If it rained, i would not go there.