2021 April Release

Control FlowPermanent link for this heading

Following control flow elements are available. If the condition needs a location, this location must be added after the closing bracket of the condition.

Syntax

[maxiterations=NUMBER, loopinterval=MILLISECONDS]
while (COND) [@LOCATION] {
}

[maxiterations=NUMBER, loopinterval=MILLISECONDS]
do {
}

while (COND) [@LOCATION]

if (COND) [@LOCATION] {
}

else if (COND) [@LOCATION] {
}

else {
}

While

The condition of “while” loops is checked at the beginning. An annotation can be defined for the maximal number of iterations and for the time that should be waited between each iteration.

Do - While

The condition of “do while” loops is checked at the end. This way the loop will be entered at least once. An annotation can be defined for the maximal number of iterations and for the time that should be waited between each iteration.

If - Else If - Else

The first block for which the condition is met will be executed otherwise the statements in the else block will be executed.