Write a simple sentence using dash to indicate parenthesis

I am going to the park - if it doesn't rain - to have a picnic with my friends.