DCode
Covers Engine 2.0.0
Blocks
Ordinary indentation-based control-flow, iteration, and definition constructs used inside executable DCode bodies.
| Feature | Family | Syntax | Available in |
|---|---|---|---|
| do | Definition | do: | Executable DCode bodies |
| elif | Conditional | elif <condition>: | Executable DCode bodies |
| else | Conditional | else: | Executable DCode bodies |
| elseif | Conditional | elseif <condition>: | Executable DCode bodies |
| for | Iteration | for <Lua for-clause>: | Executable DCode bodies |
| for each | Iteration | for <name> in <array-or-object>: | Executable DCode bodies |
| function | Definition | [local] function <name>(<arguments>): | File scope, Executable DCode bodies |
| if | Conditional | if <condition>: | Executable DCode bodies |
| once | DCode Conditional | once: | Task, state, loop, sequence and timeline runtime sections |
| when | DCode Conditional | when(condition, time=seconds): | Executable DCode bodies |
| while | Iteration | while <condition>: | Executable DCode bodies |