The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows:
If the first operand evaluates to true (1),
the second operand is evaluated.
If the first operand evaluates to false (0),
the third operand is evaluated.