When is a comma necessary before “if?” A comma before “if” is necessary after an introductory remark at the beginning of a sentence. We also need a comma when “if” is used after a mid-sentence transition phrase, such as “for example” or “that is.” We also need to place a comma before “if” when it …