Ternary ?
: is the
conditional operator. It works like an if-then-else statement but
can safely be embedded within other operations and
functions:
test_expr
?if_true_expr
:if_false_expr
If the test_expr
is true, only
the if_true_expr
is evaluated.
Otherwise, only the if_false_expr
is
evaluated. Either way, the value of the evaluated expression
becomes the value of the entire expression.
13.58.116.51