NEXTLOOP
Terminate current loop iteration
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
VSupported on OpenVMS
|
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