Function
Define a named piece of behavior you can call later.
to action pattern:
...
to get value pattern:
return ...
A section is a grouped block of code. Child lines are indented deeper and run as part of that block.
These pages explain the main section forms you will write in everyday DynLex code.
to and to get to name reusable behavior.Define a named piece of behavior you can call later.
to action pattern:
...
to get value pattern:
return ...
Repeat a section while a condition stays true.
while condition:
...
Run a section only when a condition is true.
if condition:
...
Choose one branch by comparing a value against several cases.
match based on value:
...
Define one branch inside a match or switch section.
case value:
...