Previous: if-else
, Up: Conditionals [Contents][Index]
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.