|
||||||||||||
|
|
||||||||||||
Conditionals
Conditional is shorthand for
an if
statement. If a conditional expression evaluates to "true",
then conditional yields whatever if-true yields;
otherwise, if-false is yielded.
If if-false is omitted, then ``
A conditional with double question marks yields value
if it is "true", otherwise it yields if-false. There is the similarity
that `` cond-expr := exprcondition "?" exprif-true ":" exprif-false cond-expr := exprcondition "?" exprif-true ":" cond-expr := exprvalue "??" exprif-false
See also
| Expressions
| Grammar
|
||||||||||||
|
|
||||||||||||