(used in combination with 才cái) it is only if ... (that one can ...) (as in 只有通过治疗才能痊愈zhǐyǒutōngguòzhìliáocáinéngquányù "the only way to cure it is with therapy")
it is only (someone) who ... (as in 只有男性才有此需要zhǐyǒunánxìngcáiyǒucǐxūyào "only men would have such a requirement")
(used to express lack of alternatives) can onlyhave no choice but to (as in 只有屈服zhǐyǒuqūfú "the only thing you can do is give in")