isnext Element

Jump forward within a loop to the next list element of an iterator.

Syntax

<isnext/>

Purpose

This tag affects only the iterator of the inner loop. If an iterator has already reached its last element, or an iterator is empty when an <isnext> is processed, the loop is terminated instantly.

<isnext> can be used only within an <isloop>... </isloop> loop structure.

Example

The following example shows how to output the names of two products one after another:

<isloop iterator="${pdict.Products}" var="product">
  <isprint value="${product.name}">
  <isnext/>
  <isprint value="${product.name}"> <BR>
</isloop>