If Expression
Last updated
Last updated
Evaluates the (the condition). If the result tests as , the first (the then body) is evaluated. Otherwise, if an if-expression-else
clause is present, the second block-expression
(the else body) is evaluated.
The whole expression results in one of the following values, in order:
The result of the then body.
The result of the else body, if an if-expression-else
is present.
The .
Almost all values are considered truthy, with the following exceptions:
The .
The .