Document Tree
Document Properties
Last Modified
Added to KB
Public Access
Doc Type
  • ICM 7.10
  • ICM 11
  • ICM 12



Short Description

child element of ISLOOP that terminates loop

Table of Contents

Product Version


Product To Version


StatusNew Labels


This tag is only allowed as child element of <ISLOOP> .
Loops are blocks of code that are executed repeatedly until a specific condition is met. Use <ISLOOP> to loop through the elements of a specified iterator. For example, using <ISLOOP> you can list iterable data like categories, products, shipping, or payment methods on a web page.

Multiple <ISLOOP> statements can be nested to construct more complex loop structures.
<ISLOOP> has the two supporting tags <ISBREAK> and <ISNEXT> . Both tags can only be used inside the <ISLOOP> tag.
Use <ISBREAK> within an <ISLOOP> construct to unconditionally terminate the loop. If <ISBREAK> is used in a nested loop, it will only terminate the inner loop.
Usually, the <ISBREAK> tag is used within <ISIF> tags to terminate a loop when a certain condition is met.
Use <ISNEXT> to jump forward to the next element in an iterator. In nested loops, this tag affects only the iterator of the inner loop. In case an iterator has already reached its last element, or an iterator is empty when an <ISNEXT> is processed, the loop is terminated instantly.


iterator = "{ISML variable identifier}"
[ alias = "{simple name}" ]
[ counter = "{counter name}" ]
... some HTML and ISML code ...


In this example, <ISBREAK> terminates the loop after displaying three product names, even if the products iterator contains more than three products:

<ISSET name="counter" value="#0#">
<ISLOOP iterator="basket:product">
  <ISPRINT value="#product:name#"> <BR>
  <ISSET name="counter" value="#counter + 1#">
  <ISIF condition="#counter >= 3#">

Reference - ISML Tags

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to if you experience login issues,
or if you want to register as customer.