`A + + B + / + X + + Y + ` is a pattern used to present two similar facts in parallel. Here are relevant articles:
* JGram:
* jtest4you: Learn JLPT N2 Grammar: (mo~ba~mo)
In your example sentence, the "B" and "Y" parts happen to be the same na-adjective, ``. The speaker is saying two facts in parallel, "academic abilities (of the two schools) are the same" and "reputation and popularity (of the two schools) are the same".
is not always translated as "if". It can work as something like an emphatic topic marker, similar to English "speaking of " or "regarding ". Here's the dictionary entry which is (probably) relevant:
>
>
> * …―
> * ……→
>
Typical idiomatic usage of this kind of is found in this question: Meaning of pattern XXYY