Both if and when is correct in that context. It all depends on you to choose which is appropriate The difference: "I will come tomorrow if I feel better" means that you will come ONLY if you feel better, otherwise you won't. and "I will come tomorrow when I feel better" means that you will come but AFTER you feel better.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.