Student or Learner
Can one say
a. It discourages a poor kid if a rich kid gets all the attention at school.
b. If a rich kid gets all the attention at school, it discourages a poor kid.
c. It means a lot to me if you win.
d. If you win, it means a lot to me.
Since the verb is the main clause is in the present tense, I assume that these sentences express general facts and 'if' means 'when' in them. (c) and (d) could not be about a specific 'winning', but they rather express the idea that I am happy whenever you win.
Is that correct?
Yes- the person is moved every time the person wins. In the first, I don't think that if necessarily has exactly the same meaning as when. If, for instance, the people have learnt from experience and make sure that rich kids do not get too much attention, then it is not when.