BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Comm-Dev-101 Exam - Topic 4 Question 10 Discussion

Posted by Deonna on Nov 30, 2026 at 09:45 AM

Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?

...

Suggested Answer: A

Thevarattribute of an<isloop>statement defines the variable that represents the current object from the collection during each iteration. In this example,items='${pdict.Basket.products}'supplies the iterable collection, whilevar='product'assigns each current collection member to the variable namedproduct. Therefore, inside the loop body, the current product is referenced directly asproduct.

Salesforce's ISML documentation defines the loop variable as the identifier through which the current element in the iterable collection is accessed. The separatestatus='loopstatus'variable represents loop metadata, such as iteration position and related state; it is not the product itself.

Option B is incorrect because declaringvar='product'does not create aproductproperty insidepdict. Option C also misuses the status variable:loopstatusis an iteration-status object rather than a direct array index intended to retrieve the current item. Using the explicitly declared loop variable produces clearer, idiomatic, and maintainable ISML.

Study Guide reference:Application Development --- ISML templates,<isloop>, pipeline dictionary access, loop variables, and storefront rendering.

===============


Get Premium Comm-Dev-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
0 comments · newest first

Currently there are no comments in this discussion, be the first to comment!

0/2000 characters

Save Cancel