Returns an expression that can be used to chain multiple when-then statements together.
On the returned case expression, you can add cases by calling when with an expression and subsequently call then with another expression.
This creates a chain of if-then-else statements. If no cases match, the result of the default expression is used.
The expression given as argument to a when-call should result in boolean.
Returns an expression that can be used to chain multiple when-then statements together. On the returned case expression, you can add cases by calling when with an expression and subsequently call then with another expression. This creates a chain of if-then-else statements. If no cases match, the result of the default expression is used. The expression given as argument to a when-call should result in boolean.