Forums/New Features

Accessing and testing the loop index and item counts

Michael Slater
posted this on September 14, 2011, 21:37

Over the course of the past few months, we've added several new WebvantaScript capabilities to make it easier to build highly customized database presentations.

You can now access the loop index value when you're in an iterator (such as item:each); test the loop value and insert other code conditionally when the index meets the condition; and access the total number of items the loop will go through.

This article has all the details: Accessing the Loop Index and Number of Items