Commas with Conditional Sentences - Writing English
Use a comma if the if clause is at the beginning of the sentence.
Example: If I go to London, I will visit the Tower.
Don’t use a comma if the if clause is at the end of the sentence.
Example: I will visit the Tower if I go to London.
see also: → Conditional Sentences Type I, II and III