Conditional Operators

conditional-expression:
        expression ? expression : expression

Conditional expressions group right-to-left. The first expression is evaluated and if it is true, the result is the value of the second expression, otherwise (i.e. false or @) that of third expression. The second and third expressions need not have the same type; moreover only one of them is evaluated.


[BACK] [FORWARD] [HOME] [UP] [HELP]