Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Branching and Flow Control

An if chooses which block to evaluate. Dewy comparisons use a question mark.

let score = 42
if score >? 40 { printl"high" } else { printl"low" }

Expected output:

high

Run the example from a file with dewy example.dewy. Its exact output is checked by the website build on the native release target.

Design boundary. The Branching and Flow Control reference specifies the complete language rules. A passing example covers this program only. See generated coverage for related acceptance programs and unmeasured areas.