Conditional operator is an alternative of:

Incorrect

if— else

Incorrect

Nested if

Incorrect

While

Correct

if