Using nVelocity to access collection item by index

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Using nVelocity to access collection item by index

Post by nickc » Tue Nov 11, 2008 10:59 am

Wondering if something like this is possible (without iterating the collection):

#if ($Product.TemplateFields[0].InputValue == "VALUE")
[[ConLib:Custom/MyConditionalProductControl]]
#end

The above statement throws the error: "Encountered "[" at line 51, column 29. Was expecting one of: ..."

Post Reply