Next, a for
iteration step is performed, as follows:
for
statement completes abruptly for the same reason. Otherwise, there is then a choice based on the presence or absence of the Expression and the resulting value if the Expression is present:
true
, then the contained Statement is executed. Then there is a choice:
for
statement completes abruptly for the same reason; any ForUpdate statement expressions to the right of the one that completed abruptly are not evaluated. If the ForUpdate part is not present, no action is taken.
for
iteration step is performed.
false
, no further action is taken and the for
statement completes normally.
If the value of the Expression is false
the first time it is evaluated, then the Statement is not executed.
If the Expression is not present, then the only way a for
statement can complete normally is by use of a break
statement.