The ternary conditional operator is simple. For some expression a ? b : c
, where a
is a condition, and b
/c
are values, the expression will evaluate to b
if a
is true, and will evaluate to c
if a
is false.
The ternary conditional operator is simple. For some expression a ? b : c
, where a
is a condition, and b
/c
are values, the expression will evaluate to b
if a
is true, and will evaluate to c
if a
is false.