Control Flow
Conditional Statements
Syntactically, a conditional statement requires the following elements:
if
keywordIn braces, code block of first option
else
keywordIn braces, code block of second option
Terminating
;
(Note further that if
and else
are always paired—there is no standalone if
.)
Branching Statements
Besides simple conditional statements, Jock supplies a type-based dispatch statement, match
, and a value-based dispatch statement, switch
.
Last updated