Previous Chapter | Next Chapter | Up | Next Section | Contents

Grouping Variables


The dtml-in tag defines special variables used for testing when a "grouping" variable changes. These variables begin with the prefix "first-" or "last-". Their value is used to test whether an item is the first or last item in a subsequence of displayed items whose value is the same value for the given item variable.

Special variables for group processing

Name

Description

first-nnn

True if the current item is the first item among the displayed items that has the current value for variable, nnn ; False otherwise.

last-nnn

True if the current item is the last item among the displayed items that has the current value for variable, nnn ; False otherwise

Previous Chapter | Next Chapter | Up | Next Section | Contents