Control flow statements

if – else – endif

Avoid using the one line form of conditional expressions.
To improve code readability, it is essential to express the hierarchy of nested statements.
The following example shows the recommended tabulation of code blocks.
Example:

if condition1 then
    statement1
    ...
    statementn
else
    statementn+1
    ...
    statementn+m
endif

if condition2 then
    if condition3 then
        ...
    else
        ...
    endif
    if condition4 then
        ...
    endif
else
    ...
endif

for – next, do – while, while – endwhile, repeat – until

To improve code readability, it is essential to express the hierarchy of nested statements.
The following example shows the recommended tabulation of code blocks.
Example:

for i = initialValue to endValue
    statement1
    ...
    statementn
next i

do
    ...
    for i = initialValue to endValue
        statement1
        ...
        statementn
    next i
    ...
    bCondition = ...
    ...
while bCondition