Decisions and blocks
Choose a value, then group a few calculations in a block.
Choose between two values
?: selects the first result when its condition succeeds; ?_ selects the other result when it fails. This returns 4.
Test x := 4 as well. The Ternaries and cases lesson covers several branches and the distinct undecided ? result.
Group calculations
{; ... } groups statements and returns its final value. The following block returns 6.
Brace containers explains the other sigils and later loop mechanics. Loops that update state are best read after Cells and assignment; Bounded simulation uses both. Deferred execution is an advanced continuation.
Continue with Functions and scope to reuse a decision.