Loop Next statement

From m204wiki
Revision as of 21:17, 6 September 2011 by JAL2 (talk | contribs) (Created page with "It is quite common in any programming language to have a need to exit a loop under certain conditions. <var class="product">User Language</var> provides this capability with the ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It is quite common in any programming language to have a need to exit a loop under certain conditions. User Language provides this capability with the Loop End statement:

for %i from 1 to %list:count print %list:item(%i) if %list:item(%i) eq '***END***' then loop end end if end for

It is almost as common to have the need to simply do the next iteration of a loop, that is, go to the top of the loop, under certain conditions. The Janus SOAP ULI provides this capability with the Loop Next statement:

for %i from 1 to %list:count if %list:item(%i) eq then loop next end if print %list:item(%i) end for

The Loop Next statement takes no parameters.