Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

27 Working with Mif2Go macros > 27.3 Using multiple-value list variables > 27.3.1 Understanding list-variable syntax


27.3.1 Understanding list-variable syntax

To create a list variable, all you have to do is use a Mif2Go macro variable name with an index value in brackets, similar to C-language array notation:

$$listname[index]

For example:

$$mylist[$$_count]         using a variable as the index

$$mylist[2]                using a constant as the index

$$mylist[($$myindex + 1)]  using an expression as the index

List indexes can be nested

The index is a string, not just a number, so it can be anything, even another nested list reference:

<$$mylist[$$another[one]]>



27 Working with Mif2Go macros > 27.3 Using multiple-value list variables > 27.3.1 Understanding list-variable syntax