Previous: , Up: Conditionals   [Contents][Index]


18.9.2 Conditional Expressions

Poke supports a ternary conditional expression that has the form:

condition ? true_expression : false_expression

where condition is an expression that should evaluate to a boolean, and true_expression and false_expression are expressions that have exactly the same type.