DOIF is a CAOS command controlling flow.
Syntax: DOIF cond (condition) ..
DOIF is part of a set of commands used for conditional execution of code. It marks the start of a code block to execute if cond is true. It must be followed by another conditional execution marker: ELIF, ELSE or ENDI.
Some valid patterns for DOIF.. code are:
- DOIF .. ENDI
- DOIF .. ELSE .. ENDI
- DOIF .. ELIF .. (ELIF ..) ENDI
- DOIF .. ELIF .. (ELIF ..) ELSE .. ENDI
where .. indicates a code block for execution under conditions.
|This stub could use .|