About the conditional operator

The conditional operator is a ternary operator, which means that it take three operands. The conditional operator is a short-hand method of applying the if..else conditional statement:

Operator

Operation performed

?:

Conditional

For information on using the conditional operator and an example, see About the conditional operator and alternative syntax.