Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

27 Working with Mif2Go macros > 27.5 Using expressions in macros > 27.5.6 Using list variables in expressions


27.5.6 Using list variables in expressions

For SGML, you might want to generate lists, such as lists by level of elements above the current element (its "ancestors"); see §27.3 Using multiple-value list variables.

In an expression, the following construct:

($$_paratag in $$mylist)

returns the value of the index for the current paragraph format in <$$mylist>, or 0 (zero) if missing; and:

($$mylist[$$level] is $$_paratag)

You can set the list item with a normal assignment:

<$$mylist[$$level] = $$_paratag>



27 Working with Mif2Go macros > 27.5 Using expressions in macros > 27.5.6 Using list variables in expressions