Control Statements
Under Construction: Super Rough, Not Hardly Done
#
Fast IntroAdama has many control and loop structures similar to C-like languages like:
And we introduce two non-traditional ones:
#
Diving Into Details#
ifif statements are straightforward ways of controling the flow of execution, and Adama's if behave like most other languages.
#
if-asUnlike most languages, Adama has a special extension to the if statement which is used for maybe. This allows safely extracting values out from the maybe.
#
whilewhile statements are a straightforward way to iterate while a condition is true.