You can use comma in if sentences if the 'if' clause comes first. If an independent clause follows a dependent clause then you can use a comma to separate it from the independent clause. "if' clause is usually a dependent clause.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
SoorisThank you Sooris, but I am still confused.
Rule: If the dependent clause comes first, you should use a comma.
But in your example sentences the first clause appears incomplete. May be that is the reason a comma is used there.
Green Tea- I wouldn't worry about it, if I were you.- We could go for a drink after work tomorrow, if you like.Another late comment. There is no good reason to use a comma in these sentences either. Personally, I would just stick to the usual rule and leave them out.