"Would" in the meaning of 'characteristic behaviour' is a modal verb (though some grammarians regard it as a phasal verb). It is in no way structurally dependent on conditional sentences. E.g. I would often visit my relatives in those days.
"Used to" is a synonymous unit, but with a wider area of application. It can also be used to indicate a continuous state, where "would" cannot be employed. E.g. I used to live in that town.
In your sentences the conjunction "if" is used as "when", that's why I think they are not conditional but complex sentences with time clauses.
- For Teachers