Inversion in "only [adverb] have they"
Subject-auxiliary inversions not associated with questions
Reason for subject-verb inversion: "Only in cases where A is B, shall the company do X"
"Only under such conditions, can the university attract the very best graduate students." Or should be "Only under such conditions, the university can attract the ...." ?
Which is correct?
As a non English speaker, I've known so far if there is a comma after the "only-" phrase, there's no inversion. But the sentence above makes me confused.
The point is, should I invert the sentence always if it begins with "Only"? regardless of comma?