Salesforce B2C Commerce 23.6 > Developing Your Site > Development Components > Templates > ISML

iscontinue Element

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

Syntax

<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:

		<div class="payment-method-options">
			<isloop items="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.options}" var="paymentMethodType">
			
				<iscomment>Ignore GIFT_CERTIFICATE method, GCs are handled separately before other payment methods.</iscomment>
				<isif condition="${paymentMethodType.value.equals(dw.order.PaymentInstrument.METHOD_GIFT_CERTIFICATE)}"><iscontinue/></isif>
				
				<div class="form-row">
					<isset name="radioID" value="${paymentMethodType.value}" scope="page"/>
					<label for="is-${radioID}"><isprint value="${Resource.msg(paymentMethodType.label,'forms',null)}"/>:</label>
					
					<isif condition="${paymentMethodType.checked || (!empty(pdict.selectedPaymentID) && paymentMethodType.htmlValue == pdict.selectedPaymentID)}">
						<input type="radio" checked="checked" class="input-radio" name="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.htmlName}" value="${paymentMethodType.htmlValue}" id="is-${radioID}" />
					<iselse>
						<input type="radio" class="input-radio" name="${pdict.CurrentForms.billing.paymentMethods.selectedPaymentMethodID.htmlName}" value="${paymentMethodType.htmlValue}" id="is-${radioID}" />
					</isif>
				</div>
				
			</isloop>
		</div>
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.