Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
< isloop items= " ${pdict.Basket.products} " var= " product " status= " loopstatus " >
...
< /isloop >
Correct 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.