Than. You use than when comparing things, and then is used when you're describing time.
They are basically sentences that talk about factors that are known and hypothetical situations and their consequences.
For example: I would travel the world if I won the lottery.
caroline kelly is hoping to spend her vacation in ohio with her bf. she is working at the local amusement park and attends soccer camp hoping she'll be her team's captain.
but when her mother is hired in an eye clinic in egypt, caroline has to spend her summer and senior year in egypt, away from her friends, home, and everything she knows.
but then when she arrives in egypt she is surprised and astounded. she meets a charming boy who challenges everything she thought she knew about love.