NEXTLOOP
Terminate current loop iteration
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
NSupported in Synergy .NET
|
NEXTLOOP
Discussion
The NEXTLOOP statement terminates the current iteration of a loop statement (such as DO, FOR, REPEAT, and WHILE). Execution continues with the next iteration of the current loop statement.
Examples
The following example demonstrates the difference between the NEXTLOOP, EXITLOOP, and EXIT statements.
for i from 1 thru 100 begin if (.not. %valid(data(i))) begin if ((severity = %fixit(data(i))) .eq. FIXED) exit ;Process the data if (severity .eq. FATAL) exitloop ;Get out of for loop nextloop ;Start next iteration end xcall process(data(i)) end