Control flow

if is an expression

No ternary here — you don’t need one, because if already returns a value.

Chain more conditions with else if, the one bit of control-flow sugar Ascent allows:

Two rules to keep in mind: braces are mandatory even for a single-line branch, and both branches have to produce the same type — you can’t hand back a String from one side and an Int from the other.

Your turn: write your own if/else if/else, bind it to a fix slot, and print which branch got picked.