Conditionals exercises

Conditionals exercises. Complete the following sentences with the words in brackets.
I (write) to her if I knew her address.
I wouldn’t mind living in this country if the traffic (not/be) so bad.
If I showed you how to open the safe, (you/promise) not to tell anyone?
If the police come looking for you I (say) you have left the country.
If you (move) to the UK you would have to learn to speak English.
She (not/buy) it if she didn’t think she needed it.
The salad (taste) better if you added some garlic.
We (grow) our own vegetables if we had a garden.
What will you do if the boat (sink) .
When the sun (shine) I like to lie on the beach.