NEXT instruction |
NEXT (no parameters)
Immediately ends the current pass through the loop. Execution continues with the start of the next pass through the loop, which will be one of the following:
•the index update for DO or DOFOR
•the condition check for WHILE and UNTIL
•the top of the loop for LOOP
Example
dofor i = result1 result2 result3 result4
statistics(noprint) i
if %cdstat < 1.96
next
(remaining analysis executed only when the condition is false)
end dofor
This performs a t-test on four series. If a series has mean insignificantly different from zero (at 5%), we skip the rest of the analysis for that series and go on to the next.
Copyright © 2026 Thomas A. Doan