company logo

FOR block

A FOR block defines a loop initialization in the first multiple operand statement (basic_stmt). Initialization is executed once each time, when the FOR block is entered.

The next multiple operand statement may contain one or more conditions, which are combined by logical AND. When all conditions are true, the statement or block defined after the FOR statement is executed. When at least one of the conditions returns false, the FOR loop terminates.

The final multiple operand list will be executed after each loop iteration, typically for increasing the loop count.

Definition: 

for_block := _for '(' basic_stmt basic_stmt stmt_operlist ')' bstatement