2.7 Arrays

An array is a list of variables that can be indexed by a numeric variable. For example, an item could have its attachments in an array. All the attachments names could be listed by indexing the array:

{SET i = 1}
{WHILE i <= Item.Attach.count}
{VAR Item.Attach[i].name}
{INC i}
{ENDWHILE}

Array indexes can be specified more than once.

Item[i].subItem[j].value
Table[i][j]

When creating arrays in String Tables, use dots instead of brackets:

# refer to these in the templates with brackets (Month[1])Month.1 = JanuaryMonth.2 = Februaryetc.