### 37.4 Using multiple-value list variables

In addition to single-value macro variables (see §37.3 Using macro variables), you can use multiple-value list variables. A list variable is a macro variable that contains an ordered, indexable collection of items, each of the form index=value, much like an array in the C programming language. A list variable can hold up to 64K items.

In this section:

§37.4.1 Understanding list-variable syntax

§37.4.2 Assigning a value to a list-variable item

§37.4.3 Initializing list variables

§37.4.4 Using macros to process lists

§37.4.5 Using pointers to process lists

§37.4.6 Using a list instead of a conditional expression

Previous Topic: 37.3.5.3 Understanding why TextStore and CodeStore work differently

Next Topic: 37.4.1 Understanding list-variable syntax

Parent Topic: 37. Working with macros

Sibling Topics:

37.1 Defining and invoking macros

37.2 Accessing DITA2Go macro libraries

37.3 Using macro variables

37.5 Accessing settings with configuration macros

37.6 Using expressions in macros

37.7 Passing a parameter to a macro

37.8 Debugging macros

37.9 Deploying macros and macro variables

37.10 Using macros to fine-tune HTML or XML output

Table of Contents • Index