Menu

LOOP LOGIC

Provides tags for controlling loop logic.

break

This tag stops the ongoing loop immediately when evaluated.

ifRepeated

The ifRepeated tag forms a conditional block whose contents are processed only if the resolved value of the value attibute is the same as a resolved value seen on earlier rounds of this loop. For example, if value was defined as ${item.name} and the item names resolved into "Item A", "Item B" and "Item A" during the loop's rounds, the condition would be satisfied at the third round as "Item A" already appeared on the first round.

Attributes

value


Required
Value type
EL-evaluated
Yes
Any
Yes
If the resolved value of this attribute is the same as the resolved value on a previous loop round, the contents of this tag are evaluated.  

skip

This tag stops the currently ongoing round of the loop when evaluated.

Comments

0 comments