In technical writing, you often have to choose whether to begin a sentence with "if" or "when".
If / When you need to ... , do ...
If / When you need to specify a year, use YYYY-MM-DD format.
However, although in most cases both options are fine, there are also cases when I have a feeling that only one of these words sounds good.
When they are used as objects and not subjects, omit relative pronouns which, who, whom, whose, and that.
Is it correct to say that to make things more clear to myself, I should read "If ..." as "In case ...", while "when" as "In cases when ...", and use this method to choose between them? Notice the case vs. cases case.