Examples:
If I go to my friend's house for dinner tonight, I will take a bottle of wine or some flowers.
-> I am still not sure if I will go to his house or not.
When I have a day off from work, I am going to go to the beach.
-> I have to wait until I have a day off.