iscontinue Element

Stop processing the current item in the loop and start the next item in loop.

Syntax 

1<iscontinue/>

Purpose 

The <iscontinue> tag differs from the <isnext> tag in that isnext just moves the iterator forward one and continues processing next line of code. <iscontinue> breaks out of the processing and then moves to top of loop to start processing again, if there are other items to process.

<iscontinue/> can be used only within an <isloop>... </isloop> loop structure. It’s similar to “continue” in Java.

Example 

The following SiteGenesis example shows how to use <iscontinue/> to filter out the Gift Certificate payment method that is used later in the checkout process:

1<div class="payment-method-options">
2			<isloop items="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.options}" var="paymentMethodType">
3
4				<iscomment>Ignore GIFT_CERTIFICATE method, GCs are handled separately before other payment methods.</iscomment>
5				<isif condition="${paymentMethodType.value.equals(dw.order.PaymentInstrument.METHOD_GIFT_CERTIFICATE)}"><iscontinue/></isif>
6
7				<div class="form-row">
8					<isset name="radioID" value="${paymentMethodType.value}" scope="page"/>
9					<label for="is-${radioID}"><isprint value="${Resource.msg(paymentMethodType.label,'forms',null)}"/>:</label>
10
11					<isif condition="${paymentMethodType.checked || (!empty(pdict.selectedPaymentID) && paymentMethodType.htmlValue == pdict.selectedPaymentID)}">
12						<input type="radio" checked="checked" class="input-radio" name="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.htmlName}" value="${paymentMethodType.htmlValue}" id="is-${radioID}" />
13					<iselse>
14						<input type="radio" class="input-radio" name="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.htmlName}" value="${paymentMethodType.htmlValue}" id="is-${radioID}" />
15					</isif>
16				</div>
17
18			</isloop>
19		</div>