Page 1 of 1

Using nVelocity to access collection item by index

Posted: Tue Nov 11, 2008 10:59 am
by nickc
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: ..."